cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
63154
Views
25
Helpful
6
Replies

switch startup mode

knarfoooo
Level 1
Level 1

Hello,

After a power failure my cisco switch (c2950 , version 12.1(11)ea1) started in a mode which was not correct I think.

After logging in with Hyperterminal it showed: switch:

I typed boot and the switch started fine again.

What was that mode? What do I need to type in to boot in "normal" mode ?

tnx

frank

1 Accepted Solution

Accepted Solutions

Ivan Shirshin
Cisco Employee
Cisco Employee

Hi,

This is a ROMMON mode of the switch. This may occur on power cycle if a boot mode is set to manual.

If the manual boot is disabled, the switch will automatically load the image in its flash file system and boot in IOS mode.

In order to confirm this setting, use these methods:

1. 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

2. 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: 32768

Solution:

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

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

    switch: set MANUAL_BOOT no
    switch:
  2. 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
    
  3. 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.

  1. 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
    
  2. 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]
  3. 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 ---
    
    
  4. Reload the switch.

Doc:

http://www.cisco.com/en/US/products/hw/switches/ps628/products_configuration_example09186a0080169627.shtml#concept13

Kind Regards,
Ivan

**Please grade this post if you find it useful.

Kind Regards,
Ivan

View solution in original post

6 Replies 6

Ivan Shirshin
Cisco Employee
Cisco Employee

Hi,

This is a ROMMON mode of the switch. This may occur on power cycle if a boot mode is set to manual.

If the manual boot is disabled, the switch will automatically load the image in its flash file system and boot in IOS mode.

In order to confirm this setting, use these methods:

1. 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

2. 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: 32768

Solution:

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

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

    switch: set MANUAL_BOOT no
    switch:
  2. 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
    
  3. 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.

  1. 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
    
  2. 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]
  3. 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 ---
    
    
  4. Reload the switch.

Doc:

http://www.cisco.com/en/US/products/hw/switches/ps628/products_configuration_example09186a0080169627.shtml#concept13

Kind Regards,
Ivan

**Please grade this post if you find it useful.

Kind Regards,
Ivan

Great!

thanks for helping Ivan

frank

welcome! Appreciate if you could grade useful posts and mark this thread as solved.

Kind Regards,
Ivan

hi 

 

can u please tell me the  commands for setting automatic boot of image for Cisco Nexus switch

hi 

 

Can u please tell me the  commands for setting automatic boot of image for Cisco Nexus switch

Hi
If you have 2 sups , you do it like below , if its just 1 , you only need sup1
If not sup based and just nodular its the same just without the sup-1 at the end

XXX7K# sh run | i boot
boot kickstart bootflash:/n7000-s1-kickstart-npe.6.2.20.bin sup-1
boot system bootflash:/n7000-s1-dk9-npe.6.2.20.bin sup-1
boot kickstart bootflash:/n7000-s1-kickstart-npe.6.2.20.bin sup-2
boot system bootflash:/n7000-s1-dk9-npe.6.2.20.bin sup-2

# sh boot
Current Boot Variables:

sup-1
kickstart variable = bootflash:/n7000-s1-kickstart-npe.6.2.20.bin
system variable = bootflash:/n7000-s1-dk9-npe.6.2.20.bin
sup-2
kickstart variable = bootflash:/n7000-s1-kickstart-npe.6.2.20.bin
system variable = bootflash:/n7000-s1-dk9-npe.6.2.20.bin
No module boot variable set

Boot Variables on next reload:

sup-1
kickstart variable = bootflash:/n7000-s1-kickstart-npe.6.2.20.bin
system variable = bootflash:/n7000-s1-dk9-npe.6.2.20.bin
sup-2
kickstart variable = bootflash:/n7000-s1-kickstart-npe.6.2.20.bin
system variable = bootflash:/n7000-s1-dk9-npe.6.2.20.bin
No module boot variable set

Review Cisco Networking for a $25 gift card