Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating code on Catalyst OS series switches

Cisco:Switches

Updating code on Catalyst OS series switches

by  IPKONFIG  Posted    (Edited  )
After logging into the switch follow the set of commands listed below:


Enable <cr>
Type password <cr>

Show flash <cr>
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .. ffffffff 548c8f9c 39cf70 17 3526384 Feb 24 2001 11:38:22 cat4000.5-4-2.bin
2 .. ffffffff 9be9ffc0 744464 17 3830900 Mar 26 2001 07:20:03 cat4000.6-1-2.bin

*note: different versions of code will display differently

delete bootflash:cat4000.5-4-1.bin <cr>

show flash <cr>
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .D ffffffff 548c8f9c 39cf70 17 3526384 Feb 24 2001 11:38:22 cat4000.5-4-2.bin
2 .. ffffffff 9be9ffc0 744464 17 3830900 Mar 26 2001 07:20:03 cat4000.6-1-2.bin

*note: you will notice the ôDö in the line with the code you selected for deletion

Squeeze bootflash: <cr>
All deleted files will be removed, proceed (y/n) [n]? y <cr>
Squeeze operation may take a while, proceed (y/n) [n]? y <cr>

*note: you will see the switch erasing/writing the sectors in the flash, this is normal

Show config <cr>

*note: look for the set of commands below

#set boot command

set boot config-register 0x2
set boot system flash bootflash:cat4000.6-1-2.bin
set boot system flash bootflash:cat4000.5-4-2.bin



clear boot system flash bootflash:cat4000.5-4-2.bin <cr>

BOOT variable = bootflash:cat4000.6-1-2.bin,1;

*note: this shows the only boot variable in the switch now

copy tftp flash <cr>

IP address or name of remote host [A.B.C.D]? <cr>
Name of file to copy from []? cat4000.6-2-2.bin <cr>
Flash device [bootflash]? <cr>
Name of file to copy to [cat4000.6-2-2.bin]? <cr>
11897484 bytes available on device bootflash, proceed (y/n) [n]? y <cr>

*note: you will see the cursor move in circles as it downloads the code, when the switch is finished youÆll receive the following output:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

File has been copied successfully.


Show flash <cr>
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .. ffffffff 9be9ffc0 3e74f4 17 3830900 Mar 26 2001 07:20:03 cat4000.6-1-2.bin
2 .. ffffffff 84b0dfd 7cf6c8 17 4096340 Oct 10 2001 05:06:28 cat4000.6-2-2.bin


*note: notice the new file that was downloaded now appears in the flash output

Set boot system flash bootflash:cat4000.6-2-2.bin prepend <cr>
BOOT variable = bootflash:cat4000.6-21-2.bin,1;bootflash:cat4000.6-1-2.bin

*note: the prepend command puts this line item first in the boot variable.

Reset <cr>

Switch should load with the newer version of Catalyst code.










Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top