Cisco Systems, Inc.(R)    Cisco | Profile | Contacts & Feedback | Help
Cisco SMB Support Assistant
Recover a Catalyst Switch from Corrupt or Missing Software Image
Home > Work With My Switches > Cisco Catalyst Switches > Recover a Catalyst Switch from Corrupt or Missing Software Image  
 

Recover a Catalyst Switch from Corrupt or Missing Software Image




Introduction

This document explains on how to recover from a corrupt or missing software image on the Cisco Catalyst Switches. This procedure applies to the 2900XL, 2940, 2950, 2970, 3500XL, 3550, 3560, and 3750 models of Cisco Catalyst switches.


Back to Top



Requirements

To perform the steps described in this document, you need to have these items:

  • Physical access to the switch

  • A Windows PC with terminal-emulation software, such as HyperTerminal

  • A console cable or a rolled cable with an adapter. Refer to Cable Descriptions for further information.

    cat_swth_Rommon_01.gif

  • A new Cisco IOS software image provided to you by the SMB Technical Assistance Center (SMB TAC). If you do not have a new image, contact the SMB TAC for assistance. The new software image is required, if your switch software is corrupted or missing.


Back to Top



Recover the switch from ROMmon mode or switch: prompt

The error loading flash message indicates that, Flash is unable to load the current image. This message appears when the image is corrupt or incorrect, or is missing from Flash. If the system is unable to load a software image in Flash, the system loads the boot helper and brings up a switch: prompt. Otherwise, the switch is in a continuous boot cycle.

Connect to the Switch

You need a console access to your switch in order to boot the switch with a valid software image. To set up console access to the switch, follow these steps:

  1. Connect the RJ-45 connector of the console cable into the console port on the rear panel of the switch.

  2. Connect the DB-9 connector to the PC serial port.

  3. On your PC, choose Start > Programs > Accessories > Communications > HyperTerminal to open HyperTerminal. For additional information on how to connect a terminal to the console port, refer to Create a HyperTerminal Connection.

  4. Create a connection with these terminal settings:

    • Bits per second (baud): 9600

    • Data bits: 8

    • Parity: None

    • Stop bits: 1

    • Flow Control: None

    cat_swth_Rommon_02.gif

    Click OK and press Enter.

  5. The HyperTerminal window displays a command-line prompt.

    cat_swth_Rommon_03.gif

  6. Go to the Verify the Software Image in Flash and Attempt to Manually Boot the Switch section, if the switch command line displays switch: prompt. Otherwise, follow the steps in the Bring up the switch into boot loader or switch: prompt section.

Bring up the switch into Boot Loader or switch: prompt

If the switch stucks in a continuous boot cycle, bring up the switch into boot loader or switch: prompt. To bring the switch into the boot loader, follow these steps:

  1. Unplug the power cable.

  2. Hold down the Mode button located on the left side of the front panel while you reconnect the power cord to the switch. For the Catalyst 2900XL switch, release the Mode button for one or two seconds after the LED over Port 1x is no longer illuminated. The switch: prompt appears.

    Note: You must release the mode button carefully.

    Review this table to determine when to release the Mode button for your switch.

    Model Number

    LED Behavior

    2940, 2950

    Release the Mode button approximately after 5 seconds when the Status (STAT) LED turns off. When you release the Mode button, the SYST LED blinks amber.

    2960, 2970

    Release the Mode button when the SYST LED blinks amber and then turns solid green. When you release the Mode button, the SYST LED blinks green.

    3550

    Release the Mode button when the LED above Port 1x turns off.

    3560, 3750

    Release the Mode button approximately after 15 seconds when the SYST LED turns solid green. When you release the Mode button, the SYST LED blinks green.

  3. Type flash_init and press Enter at the switch: prompt.

    switch: flash_init
    
  4. Type load_helper and press Enter to load any boot helper images.

    switch: load_helper
    

Verify the Software Image in Flash and Attempt to Manually Boot the Switch

To verify the software image in flash and attempt to manually boot the switch, follow these steps:

  1. Type dir flash: and press Enter to view the contents of the flash file system.

    The contents of the switch file system must look similar to this example:

    switch:  dir flash:
    Directory of flash:/
    
    3    -rwx  1809152       <date>               c2900XL-c3h2s-mz-120.5-XU.bin
    4    -rwx  676           <date>               vlan.dat
    5    -rwx  1278          <date>               config.text
    6    -rwx  322           <date>               env_vars 
    
    1799168 bytes available (1813504 bytes used)
  2. Verify that the image in Flash is the correct image for the platform. Check the software image file name from the command line output of dir flash: with the hardware model number located in front of the switch.

    Note: Go to the Copy a New Software Image from ROM Monitor section, if the software image present is incorrect for the switch, or if the image is missing.

  3. Boot the software image manually, if the software image in Flash is correct.

  4. Type boot flash: <filename> where filename is your software image name present in the flash.

    switch: boot flash: c2900XL-c3h2s-mz-120.5-XU.bin 
    
  5. Go to the Change and Verify Boot Configuration section, if the system boots correctly and does not return to the switch: prompt. Otherwise, follow the steps in the Copy a New Software Image from ROM Monitor section, if the system still fails to load the image correctly.

Copy a New Software Image from ROM Monitor

To copy a new software image from a ROM Monitor, follow these steps:

  1. Download the new Cisco IOS-only image provided to you by the SMB Technical Assistance Center (SMB TAC). If you do not have a new image, contact the SMB TAC for assistance.

  2. Type dir flash: and press Enter to check the size of the IOS image file to be loaded in flash.

    switch: dir flash:
    Directory of flash:/
    
    3    -rwx  1809152   <date>           c2900XL-c3h2s-mz-120.5-XU.bin
    4    -rwx  676       <date>           vlan.dat
    5    -rwx  1278      <date>           config.text
    6    -rwx  322       <date>           env_vars
    
    1799168 bytes available (1813504 bytes used)

    Note: The last line in the output shows the available memory in flash.

  3. Delete the existing image(s) in Flash to make space for a new image, if the size of the file to be loaded is larger than the available memory capacity in flash.

  4. Type delete flash: filename and press Enter to delete the file from flash memory where filename is the name of the file to be deleted.

     switch: delete flash: c2900XL-c3h2s-mz-120.5-XU.bin
    
  5. Type copy xmodem: flash: filename and press Enter where filename is the name of the new file to be loaded into flash.

    switch: copy xmodem: flash:c2900xl-c3h2s-mz.120-5.WC10.bin
    
    CCC..........................................................................
    		  
    (BEGIN XMODEM DOWNLOAD ON TERMINAL SOFTWARE NOW)

    Note: You must start the XMODEM download process within three seconds. Otherwise, the switch times out the XMODEM copy.

  6. On the menu bar of the HyperTerminal, click Transfer > Send File.

    cat_swth_Rommon_04.gif

  7. In the Send File window, make these changes:

    • Click the Browse button next to the Filename text box and select the IOS image located in your PC.

    • Click Xmodem from the Protocol list.

    cat_swth_Rommon_05.gif

    Click Send to start the file transfer process.

    The Xmodem file transfer starts in the Xmodem file send window.

    cat_swth_Rommon_06.gif

    Note: On successful download of the IOS image in flash, this message appears:

     File "xmodem:" successfully copied to "flash:c3500XL-c3h2s-mz.120-5.1.XP.bin".

    Contact the SMB Technical Assistance Center (SMB TAC), if the image download is not successful.

  8. Type boot flash: filname to boot your switch with the new image. Use the boot flash: filname command where filename is the name of the file you download.

    switch: boot flash: c2900xl-c3h2s-mz.120-5.WC10.bin
    

Change and Verify Boot Configuration

To change and verify the boot configuration, follow these steps:

  1. Type enable and press Enter at the switch> prompt to enter the enable mode.

    switch>enable
    switch#
  2. Type configure terminal and press Enter at the switch> prompt to enter the configuration mode.

    switch#configure terminal
    Enter configuration commands, one per line.  End with CNTL/Z.
    switch(config)#
  3. Type boot system flash: filename and press Enter where filename is your software image name present in the flash.

    switch(config)#boot system flash:c2900xl-c3h2s-mz.120-5.WC10.bin
    
  4. Type write memory and press Enter to write the running configuration to the startup configuration.

    Switch#write memory
    Building configuration...
    Compressed configuration from 4128 to 1219 bytes[OK]
  5. Exit the terminal software.


Back to Top



Next Step

You have completed Software Image recovery for your Catalyst Switch.

To configure your switch, proceed to Download and Install Cisco Network Assistant.

To make further changes to your switch, refer to the Switch Support Page.

To configure other devices in your network, refer to the Configuration Overview Page.


Back to Top



Related Information

Service Requests

  Open a service request
  Update a service request

Feedback

Please rate this site:
++ + +/- - --

Suggestions for improvement:




If Cisco may contact you for more details
or for future feedback opportunities,
please enter your contact information:

Full Name:
Email:



© 1992-2006 Cisco Systems, Inc. All rights reserved. Terms and Conditions, Privacy Statement, Cookie Policy and Trademarks of Cisco Systems, Inc.