Sunday, 9 December 2007

Switch - when ROMmon mode

Recovering a switch

The Switch Goes to ROMmon Mode (switch: prompt) as Automatic Boot does not Occur
This problem can occur if the switch boot mode is set to manual. In order to confirm this setting, use these methods:

If you are at the ROMmon mode (switch: prompt), issue the set command and observe the output:

switch: set
BOOT=flash:c2950-i6q4l2-mz.121-13.EA1.bin
MANUAL_BOOT=yes
If you are at the regular switch# prompt, issue the show boot command and observe the output:

Switch#show boot
BOOT path-list: flash:c2950-i6q4l2-mz.121-13.EA1.bin
Config file: flash:config.text
Enable Break: no
Manual Boot: yes
HELPER path-list:
NVRAM/Config file
buffer size: 32768Note: In both cases, the Manual Boot variable is set to yes.

Solution:

If you are at the switch: prompt, perform these steps to allow the switch to boot automatically:

Issue the set MANUAL_BOOT no command at the switch: prompt.

switch: set MANUAL_BOOT no
switch:Issue the set command to confirm that the value for the MANUAL_BOOT variable is now no.

switch: set
BOOT=flash:c2950-i6q4l2-mz.121-13.EA1.bin
MANUAL_BOOT=no
Issue the boot command to reload the switch.

switch: boot flash:c2950-i6q4l2-mz.121-13.EA1.bin


Loading "flash:c2950-i6q4l2-mz.121-13.EA1.bin"...###########
###########################################################

!--- Output suppressed ---

If you are at the switch# prompt, perform these steps to allow the switch to boot automatically.

Enter the Global Configuration Mode. Issue the no boot manual to inform the switch to boot automatically.

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no boot manual
Go back to the privileged EXEC mode and save the configuration with the write memory command.

Switch(config)#end
Switch#
Switch#write memory
Building configuration...
[OK]Verify the boot parameters with the show boot command, and verify whether Manual Boot is set to no.

Switch#show boot
BOOT path-list: flash:c2900XL-h-mz-112.8-SA5.bin
Config file: flash:config.text
Enable Break: no
Manual Boot: no
HELPER path-list:

!--- Output suppressed ---

Reload the switch.

No comments: