35-3
Catalyst 3560 Switch Software Configuration Guide
78-16156-01
Chapter 35 Troubleshooting
Recovering from Corrupted Software By Using the XMODEM Protocol
2.
Locate the bin file and extract it by using the tar -xvf <image_filename.tar>
<image_filename.bin> UNIX command.
switch% tar -xvf image_filename.tar image_filename.bin
x c3560-i5-mz.121.19-EA1/c3560-i5-mz.121.19-EA1.bin, 3970586 bytes, 7756 tape
blocks
3.
Verify that the bin file was extracted by using the ls -l <image_filename.bin> UNIX command.
switch% ls -l image_filename.bin
-rw-r--r-- 1 boba 3970586 Apr 21 12:00
c3560-i5-mz.121.19-EA1/c3560-i5-mz.121.19-EA1.bin
Step 3
Connect your PC with terminal-emulation software supporting the XMODEM Protocol to the switch
console port.
Step 4
Set the line speed on the emulation software to 9600 baud.
Step 5
Unplug the switch power cord.
Step 6
Press the Mode button, and at the same time, reconnect the power cord to the switch.
You can release the Mode button a second or two after the LED above port 1 goes off. Several lines of
information about the software appear along with instructions:
The system has been interrupted prior to initializing the flash file system. The following
commands will initialize the flash file system, and finish loading the operating system
software#
flash_init
load_helper
boot
Step 7
Initialize the Flash file system:
switch: flash_init
Step 8
If you had set the console port speed to anything other than 9600, it has been reset to that particular
speed. Change the emulation software line speed to match that of the switch console port.
Step 9
Load any helper files:
switch: load_helper
Step 10
Start the file transfer by using the XMODEM protocol.
switch: copy xmodem: flash:image_filename.bin
Step 11
After the XMODEM request appears, use the appropriate command on the terminal-emulation software
to start the transfer and to copy the software image into Flash memory.
Step 12
Boot the newly downloaded Cisco IOS image.
switch:boot flash:image_filename.bin
Step 13
Use the archive download-sw privileged EXEC command to download the software image to the
switch.
Step 14
Use the reload privileged EXEC command to restart the switch and to verify that the new software image
is operating properly.
Step 15
Delete the flash:image_filename.bin file from the switch.