3560/3550 Recovery Procedure
————————————
Connect a PC to the console port of the switch,
Use a terminal emulation program such as Microsoft Windows HyperTerminal in order to establish the console session. These are the settings:
- Bits per second: 9600
- Data bits: 8
- Parity: None
- Stop bits: 1
- Flow control: None
Step-by-Step Recovery Procedure
Use this solution to solve the problem.
Note: A PC must be attached to the console port of the switch.
1.If the switch is in a continuous reboot, complete one of the procedures in this step.
Note: If the switch is not in a continuous reboot, but is already at the switch: prompt, proceed directly to Step 2.
- Proceed to Step 2.
- Catalyst 2970, 3550, 3560 and 3750 series switches
2.Issue the flash_init command and the load_helper command.
- If the Flash has already initialized, you see this:
switch: flash_init Initializing Flash... ...The flash is already initialized. switch:
If the Flash has not initialized, you see this:
switch: flash_init Initializing Flash... flashfs[0]: 21 files, 2 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 7741440 flashfs[0]: Bytes used: 4499456 flashfs[0]: Bytes available: 3241984 flashfs[0]: flashfs fsck took 7 seconds. ...done initializing flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Parameter Block Filesystem (pb:) installed, fsid: 4
Issue the load_helper command in order to load any boot helper images. Here is an example:
switch: load_helper switch:
3.Issue the dir flash: command in order to view the contents of the Flash file system.
Determine if there are any Cisco IOS® image files or image directories in flash:. The Cisco IOS image files are .bin files, and the image directories are named with the image filename, excluding the .bin extension. If no Cisco IOS image files or image directories exist, you see this:
switch: dir flash: Directory of flash:/ 2 -rwx 5 <date> private-config.text 3 -rwx 110 <date> info 4 -rwx 976 <date> vlan.dat 6 -rwx 286 <date> env_vars 26 -rwx 1592 <date> config.text 8 drwx 1088 <date> html 19 -rwx 110 <date> info.ver 4393472 bytes available (3347968 bytes used) switch: !--- No Cisco IOS images or image directories exist in Flash.
If your Flash directory looks like this, proceed directly to Step 4. Step 4 recovers the switch with an Xmodem file transfer.
If there is still an image in Flash, issue the boot command in order to try to recover the switch. Before you issue the boot command, verify where the Cisco IOS image is stored in the Flash directory. The location in which the image is stored can differ, which depends on your switch model.
- Catalyst 2970, 3550, 3560, and 3750 Flash file systemThe organization of the Flash file system on a Catalyst 2970, 3550, 3560, and 3750 is a little different. You can store the Cisco IOS image file in the flash: directory. However, if you use the Cluster Management Suite (CMS) image in order to manage switches with a web interface, you can store the Cisco IOS image file in its own directory. Issue the dir flash:directory command in order to display the image file in this case.
switch: dir flash: Directory of flash:/ 2 -rwx 976 <date> vlan.dat 3 -rwx 386 <date> system_env_vars 4 -rwx 5 <date> private-config.text 6 -rwx 1554 <date> config.text 24 drwx 192 <date> c3550-i5q3l2-mz.121-13.EA1 !--- You can store the Cisco IOS image file in its own directory.
!--- Name the directory with the image name, but exclude the .bin extension. 42 -rwx 33 <date> env_vars !--- Output suppressed. switch: dir flash:c3550-i5q3l2-mz.121-13.EA1 !--- Issue the dir flash:<directory>
!--- command in order to view the Cisco IOS image file. Directory of flash:c3550-i5q3l2-mz.121-13.EA1/ 25 drwx 832 <date> html 40 -rwx 3993612 <date> c3550-i5q3l2-mz.121-13.EA1.bin !--- This is where the Cisco IOS image file is stored for a CMS image. 41 -rwx 252 <date> info 9992192 bytes available (6006784 bytes used) !--- This output is from a Catalyst 3550 switch. Output from a
!--- Catalyst 2970, 3560, or 3750 varies slightly.
switch:
Attempt to Boot the Image
After you have verified where the Cisco IOS image file resides, try to boot the image. Issue either the boot flash:filename command or the boot flash:directory/filename command.
- Catalyst 3560
switch: boot flash:c3560-i5q3l2-mz.121-13.EA1/c3560-i5q3l2-mz.121-13.EA1.bin
!— This example uses the boot flash:<filename>/<directory> !— command on a 3550.
Loading “flash:c3560-i5q3l2-mz.121-13.EA1/c3560-i5q3l2-mz.121-13.EA1.bin”…####
################################################################################
!— Output suppressed. !— This command syntax is the same for Catalyst 2970, 3560, and 3750 !— series switches.
If you issue the boot command and the result is in a successful bootup, either the default switch> prompt or the hostname> prompt displays.
Press RETURN to get started!
Switch>
!--- The bootup was successful.
Be sure to verify that you have configured the correct boot statement on the switch.
If you issue the boot command and the command does not result in a successful bootup, either the switch: prompt displays or you are stuck in a continuous reboot again. The only option to recover the switch is an Xmodem file transfer. Step 4 covers this file transfer.
4.If the boot command has failed or there is no valid image from which to boot in Flash, perform an Xmodem file transfer.
- A typical Xmodem file transfer can take up to 2 hours, which depends on the image size.
- Download the Cisco IOS image (.bin file) to which you want to upgrade from the Software Center (Downloads) – LAN Switching Software (registered customers only) .
Note: Do not use a CMS image (.tar file). This image is a larger image and takes longer to transfer.
Issue the dir flash: command in order to compare the size of the image in bytes to the free space that remains in Flash. Here is an example:
switch: dir flash:
Directory of flash:/ !--- Output suppressed. 3132928 bytes available (4608512 bytes used) !--- There are approximately 3 MB of Flash space available for a new image.
If necessary, issue the delete command in order to delete any corrupt images that remain. Here is an example:
switch: delete flash:c2950-i6q4l2-mz.121-12c.EA1.bin !--- Issue the delete flash:<filename> !--- command in order to delete a Cisco IOS image.Are you sure you want to delete “flash:c2950-i6q4l2-mz.121-12c.EA1.bin” (y/n)? y !— Enter y for yes if you want to delete the image. File “flash:c2950-i6q4l2-mz.121-12c.EA1.bin” deleted switch:
The next example shows an Xmodem procedure on a 2955 with the use of HyperTerminal. The procedure is the same for any of the Catalyst fixed configuration switches that this document covers.
- Issue the copy xmodem: flash:filename command on the switch.Here is an example:
switch: copy xmodem: flash:c2955-i6q4l2-mz.121-13.EA1.bin Begin the Xmodem or Xmodem-1K transfer now... CCC
- From the top of the HyperTerminal window, choose Transfer > Send File.
- Choose the Xmodem protocol in the Send File dialog box and click Browse in order to select the Cisco IOS image (.bin file) that you downloaded previously.
Click Sendin order to begin the Xmodem transfer.
The Xmodem file transfer begins. This transfer can take up to 2 hours, which depends on the size of the image.
- CCCCCCC………………………………………………………………. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………….. …………………………………………………………………..
File “xmodem:” successfully copied to “flash:c2955-i6q4l2-mz.121-13.EA1.bin”!— If the Xmodem file transfer fails for some reason,restart the process.
!--- If the Xmodem file transfer is successful, you return to the !--- switch: prompt. switch:
- Boot the new image that you just copied over with the Xmodem procedure.Issue the boot flash:filename command, as this example shows:
switch: boot flash:c2955-i6q4l2-mz.121-13.EA1.bin Loading "flash:c2955-i6q4l2-mz.121-13.EA1.bin"...############################### ################################################################################ !--- Output suppressed. Press RETURN to get started! Switch> !--- The bootup was successful.
Be sure to verify that your boot statements are set correctly.
How to Speed Up Xmodem Recovery
When a user tries to recover the switch from a corrupted or missing IOS, the copy xmodem: flash:[IOS filename] command might not be displayed under the switch: prompt. The copy command might be displayed under the switch: prompt, but not the copy xmodem: command.
Complete these steps in order to speed up the Xmodem recovery:
- Set the baud rate to 115200 on the switch: prompt.
switch: set BAUD 115200 !--- The screen goes blank after you enter this command.
- Restart HyperTerminal.
- Under COM PORT properties, select the bits per second as 115200. The switch: prompt is displayed.
- Start the Xmodem recovery.
- After the Xmodem recovery, set the BAUD rate back to 9600. If the set BAUD 9600 command does not bring the baud rate to 9600, issue the unset BAUD command in order to bring the baud rate to a default value of 9600 bps.
Verify
Complete these steps:
- Issue the show versioncommand in order to verify the current version of software that you run.Here is an example:
2955#show version
Cisco Internetwork Operating System Software IOS ™
C2955 Software (C2955-I6Q4L2-M),
Version 12.1(13)EA1, RELEASE SOFTWARE !— This is the current version of software.
- Issue the dir flash:filename command in order to display the Cisco IOS image (.bin file) on a Catalyst 2940, 2950 or 2955.
2950#dir flash: Directory of flash:/ 3 -rwx 5 Mar 01 1993 00:12:55 private-config.text 4 -rwx 2905856 Jan 01 1970 03:06:25 c2955-i6q4l2-mz.121-13.EA1.bin !--- The Cisco IOS image (.bin file) is stored in flash: !--- on a Catalyst 2940, 2950 or 2955. !--- Output suppressed.
If you run a CMS image on a Catalyst 2970, 3550, 3560, or 3750, you can store the Cisco IOS image in an image directory. Here is an example:
3550#dir flash: Directory of flash:/ 2 -rwx 976 Mar 01 1993 21:47:00 vlan.dat 4 -rwx 5 Mar 06 1993 23:32:04 private-config.text 6 -rwx 1554 Mar 06 1993 23:32:04 config.text 7 drwx 192 Mar 01 1993 00:14:02 c3550-i5q3l2-mz.121-13.EA1 !--- Notice the "d" for directory in the permission statement. !--- This is an image directory that is installed when you upgrade the !--- switch with a CMS image. !--- The Cisco IOS image (.bin file) is inside this directory. 5 -rwx 3823261 Mar 01 1993 00:46:01 c3550-i5q3l2-mz.121-12c.EA1.bin !--- This is another Cisco IOS image (.bin file). 8 -rwx 33 Mar 01 1993 00:14:06 env_vars 9 -rwx 384 Mar 01 1993 00:14:06 system_env_vars 15998976 bytes total (6168576 bytes free) !--- This output is from a Catalyst 3550 switch. Output from a !---
Catalyst 2970, 3560, or 3750 varies slightly.
3550#
You may need to issue the dir flash:directory command on a Catalyst 3550 in order to display the Cisco IOS image (.bin file). Here is an example:
3550#dir flash:c3550-i5q3l2-mz.121-13.EA1 Directory of flash:/c3550-i5q3l2-mz.121-13.EA1/ 23 drwx 832 Mar 01 1993 00:12:00 html 40 -rwx 3993612 Mar 01 1993 00:14:02 c3550-i5q3l2-mz.121-13.EA1.bin 41 -rwx 252 Mar 01 1993 00:14:02 info 15998976 bytes total (6168576 bytes free) !--- This output is from a Catalyst 3550 switch. Output from a !--- Catalyst 2970, 3560, or 3750 varies slightly. 3550#
- Issue the show bootcommand in order to verify that the boot statement is set correctly.Here is an example:
Switch#show boot BOOT path-list: !--- No boot system statement is set in this case. !--- Output suppressed.
Note: Boot statements do not display in the configuration or when you issue the show run command on any of the fixed-configuration switches that this document covers. You must issue the show boot command in order to display boot statements.
If no boot statement is set or if the boot statement points to an old or missing version of software, configure the correct boot statement. Issue the boot system flash:filename command.
2955#configure terminal 2955(config)#boot system flash:c2955-i6q4l2-mz.121-13.EA1.bin !--- This is how to set a boot system statement on a Catalyst 2940, 2950, or 2955. 2955(config)#end 2955# 2955#show boot BOOT path-list: flash:c2955-i6q4l2-mz.121-13.EA1.bin !--- Output suppressed.
If you use a CMS image on a Catalyst 2970, 3550, 3560, or 3750, you can store the Cisco IOS image (.bin file) in its own image directory. Issue the boot system flash:directory/filename command. Here is an example:
3550#configure terminal
3550(config)#boot system flash:c3550-i5q3l2-mz.121-13.EA1/c3550i5q3l2-mz.121-13.EA1.bin
!— This command should be on one line. !— This is how to set a boot system statement on a Catalyst !— 3550 if the Cisco IOS image (.bin file) is in its own image directory.
3550#end
3550#
3550#show boot
BOOT path-list: flash:c3550-i5q3l2-mz.121-13.EA1/c3550-i5q3l2-mz.121-13.EA1.bin!— Output suppressed.
- How to Get Your Home Wired With Network Cables? - December 19, 2024
- Wi-Fi 7 or 802.11be: A Quantum Leap in Wireless Networking Technology - December 11, 2024
- NETGEAR Nighthawk (RAX54S) WiFi 6 Router Review - August 24, 2024