March 28, 2024

How to upgrade Cisco IOS-Image over USBflash with a TAR-File.

Download the TAR-File from the Cisco Software Download Portal (https://software.cisco.com/download/) and copy the new IOS-Image in the USB Flash Drive.  The TAR File contains the .bin IOS Image and an additional set of html & other files. In our case we took the IOS-Version as a TAR-File because the Client needs the Web-Management via web browser.

1. Copy the new IOS-Image from usbdrive in to the flash memory

Switch#archive tar /xtract usbflash0:/c2960s-universalk9-tar.150-2.SE6.tar flash:

2. Now its start extracting the TAR-file into the Switch flash memory

c2960s-universalk9-mz.150-2.SE6/ (directory)
extracting c2960s-universalk9-mz.150-2.SE6/info (635 bytes)
c2960s-universalk9-mz.150-2.SE6/html/ (directory)
c2960s-universalk9-mz.150-2.SE6/html/zh/ (directory)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_xsetup.js (12993 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_smartports.js (3803 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_dashboard.js (2591 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/charset.js (331 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/troubleshooting_JavaScript.htm (8011 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_portstatistics.js (1434 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_portruntime.js (696 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/xhome_new.htm (5360 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/troubleshooting_OS.htm (3090 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_fpv_title.js (3333 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_health.js (1627 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/troubleshooting_Browser.htm (3783 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_preflight.js (3058 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/html/zh/re_menu.js (1171 bytes)
extracting c2960s-universalk9-mz.150-2.SE6/c2960s-universalk9-mz.150-2.SE6.bin (14562176 bytes)
….
extracting c2960s-universalk9-mz.150-2.SE6/dc_default_profiles.txt (66292 bytes)
extracting info (110 bytes)
Switch#

2. Check if everything is copied into Flash Memory. Erase the old IOS and the vlan.dat if its present from the Switch flash memory

Switch#delete /recursive /force flash:/c2960s-universalk9-mz.122-55.SE7
Switch#delete flash:/vlan.dat

Delete flash:/vlan.dat? [confirm]

Switch#

3. Erase the running and startup config

Switch#write erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase o….
nvram: complete
Switch#

4. Set the new default IOS to boot system

I know that boot system take the ios were are avaliable to boot the system.
but to be sure that the correct ios version is booting set this command.

Switch#show boot
BOOT path-list : flash:/c2960s-universalk9-mz.122-55.SE7/c2960s-universalk9-mz.122-55.SE7.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 :
NVRAM/Config file
buffer size: 524288
Timeout for Config
Download: 0 seconds
Config Download
via DHCP: disabled (next boot: disabled)

Switch(config)#boot system flash:/c2960s-universalk9-mz.150-2.SE6/c2960s-universalk9-mz.150-2.SE6.bin

5. Dobble Check

Switch#show boot:
BOOT path-list : flash:/c2960s-universalk9-mz.150-2.SE6/c2960s-universalk9-mz.150-2.SE6.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 :
NVRAM/Config file
buffer size: 524288
Timeout for Config
Download: 0 seconds
Config Download
via DHCP: disabled (next boot: disabled)
Switch#

6. Put the new config and save

Switch(config)#end
Switch#write
Building configuration…
[OK]
Switch#

or…

Switch(config)#end
Switch#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
[OK]
Switch#

7. Reboot Switch for finisch the IOS-Image installation
Switch#reload

8. After reboot check if the new IOS-Image is installed.

Switch#show version
Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 15.0(2)SE6, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Wed 09-Apr-14 03:09 by prod_rel_team

ROM: Bootstrap program is C2960S board boot loader
BOOTLDR: C2960S Boot Loader (C2960S-HBOOT-M) Version 12.2(55r)SE, RELEASE SOFTWARE (fc1)

Switch uptime is 3 minutes
System returned to ROM by power-on
System restarted at 01:27:16 UTC Wed Mar 30 2011
System image file is “flash:/c2960s-universalk9-mz.150-2.SE6/c2960s-universalk9-mz.150-2.SE6.bin”
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

cisco WS-C2960S-48TS-L (PowerPC) processor (revision J0) with 131072K bytes of memory.
Processor board ID FOC1505X2WB
Last reset from power-on
1 Virtual Ethernet interface
1 FastEthernet interface
52 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.

512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 58:0A:20:CD:17:80
Motherboard assembly number : 73-12423-09
Power supply part number : 341-0328-03
Motherboard serial number : FOC17480TM7
Power supply serial number : DCA1728M0WH
Model revision number : J0
Motherboard revision number : A0
Model number : WS-C2960S-48TS-L
Daughterboard assembly number : 73-11933-04
Daughterboard serial number : FOC17354FRL
System serial number : FOC1505X2WB
Top Assembly Part Number : 800-32448-04
Top Assembly Revision Number : B0
Version ID : V08
CLEI Code Number : COMGJ00ARD
Daughterboard revision number : A0
Hardware Board Revision Number : 0x01
3956720K bytes of USB Flash usbflash0 (Read/Write)
Switch Ports Model SW Version SW Image
—— —– —– ———- ———-
* 1 52 WS-C2960S-48TS-L 15.0(2)SE6 C2960S-UNIVERSALK9-M
Configuration register is 0xF

Switch#

Leave a Reply

Your email address will not be published. Required fields are marked *