Device and software used for this update:
- Cisco Switch 3750G-24T
- Cisco Switch IOS 12.2.55-SE5
- TFTP server software
Scenario:
- Cisco Switch 3540G flash has 5.7MB free space
- Cisco Switch IOS 12.2.55-ES5 upgrade needs 11.54MB
- Not enough free space on flash storage
First,find out the flash free space and what version of IOS is running on the switch.
Switch# dir flash:
Directory of flash:/
2 -rwx 3001 Jul 25 1993 05:53:33 +00:00 private-config.text
4 -rwx 1644 Jun 28 1993 14:11:01 +00:00 vlan.dat
459 drwx 192 Jun 16 1993 06:51:50 +00:00 c3750-ipbasek9-mz.122-35.SE2 458 -rwx 10170 Jul 25 1993 05:53:33 +00:00 config.text
15998976 bytes total (5790208 bytes free)
Switch#
As we can see here, the flash has 5.7MB of free space. The new IOS image requires 11.54MB as stated on Cisco Website.
Saved the file to TFTP server folder and ready to upload it to Cisco Switch.
Since there is not enough free space in Flash storage, we have to overwrite the old IOS file with the new one.
First send an icmp ping command to the TFTP server to make sure it is reachable from the Switch.
Switch#ping 10.1.1.173
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.173, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms
Switch#
Next step is to upload and overwrite the current IOS with the new IOS (tar file).
Switch#archive download-sw /overwrite tftp://10.1.1.173/c3750-ipbaselmk9-tar.122-55.SE5.tar
Loading c3750-ipbaselmk9-tar.122-55.SE5.tar from 10.1.1.173 (via Vlan20): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
examining image...
extracting info (106 bytes)
extracting c3750-ipbasek9-mz.122-55.SE5/info (681 bytes)
extracting info (106 bytes)
Stacking Version Number: 1.45
System Type: 0x00000000
Ios Image File Size: 0x00B8B200
Total Image File Size: 0x00C19A00 Minimum Dram required: 0x08000000
Image Suffix: ipbasek9-122-55.SE5
Image Directory: c3750-ipbasek9-mz.122-55.SE5
Image Name: c3750-ipbasek9-mz.122-55.SE5.bin
Image Feature: IP|LAYER_3|SSH|3DES|MIN_DRAM_MEG=128
Old image for switch 1: flash:c3750-ipbasek9-mz.122-35.SE2
Old image will be deleted before download.
Deleting `flash:c3750-ipbasek9-mz.122-35.SE2' to create required space
Extracting images from archive into flash...
Once the overwrite is done, confirm that the Cisco Switch is booting from the new image.
Switch#dir flash:
Directory of flash:/
2 -rwx 3001 Jul 25 1993 05:53:33 +00:00 private-config.text
4 -rwx 1644 Jun 28 1993 14:11:01 +00:00 vlan.dat
510 drwx 192 Aug 8 1993 09:32:45 +00:00 c3750-ipbasek9-mz.122-55.SE5
458 -rwx 10170 Jul 25 1993 05:53:33 +00:00 config.text
15998976 bytes total (3331072 bytes free)
Switch#
The next step is to boot the image, save the configuration and reboot the system.
Switch#show boot
BOOT path-list : flash:c3750-ipbasek9-mz.122-55.SE5/c3750-ipbasek9-mz.122-55.SE5.bin
Config file : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break : no
Manual Boot : no
HELPER path-list :
Auto upgrade : yes
Auto upgrade path :
Switch#
Switch#wr
Building configuration...
[OK]
Switch#reload
Proceed with reload? [confirm]
This comment has been removed by the author.
ReplyDeleteUploading Image software from switch to TFTP server
ReplyDeleteexample:
tftp server ip: 192.168.100.10
image name: c3560G-XXXX
#archive upload-sw tftp://192.168.100.10/c3560G.tar
Uploading/backing up running-config to TFTP server
ReplyDeleteexample:
tftp server ip: 192.168.100.10
#copy system:running-config tftp://192.168.100.10/running-config