Cisco – Code Upgrade/Downgrade

Print Friendly, PDF & Email

Code upgrade involves uploading the binaries to the switch via tftp and installing it. Below is the procedure to upgrade the code on HP chassis with Cisco switch.

• On Cisco switches, nvram area is referred to as bootflash. The images reside in this area. Check the current version as below (3.1.2a in following example):

hpchassis# cd bootflash://
hpchassis# dir
260 Apr 06 06:33:46 2010 license_file.lic
46080 Sep 20 10:00:46 2011 lost+found/
14260736 Apr 05 15:26:28 2010 m9100-s2ek9-kickstart-mz.3.1.2a.bin
103328491 Sep 20 09:41:24 2011 m9500-sfek9-mz.3.1.2a.bin

Usage for bootflash://
153581568 bytes used
8873984 bytes free
162455552 bytes total

• Copy the code binaries (s2ke9 and s2ke9-kickstart) to Cisco switches using tftp.

You might have to delete existing files in order to free up space to save new images.
hpchassis# del m9100-sfek9-kickstart-mz.3.1.2a.bin
hpchassis# del m9100-sfek9-mz.3.1.2a.bin
hpchassis# copy tftp://192.18.1.1/m9100-s2ek9-kickstart-mz.4.2.3.bin bootflash://
Trying to connect to tftp server……
/
TFTP get operation was successful
hpchassis# copy tftp://10.128.91.192/m9100-s2ek9-mz.4.2.3.bin bootflash://
Trying to connect to tftp server……
/
TFTP get operation was successful

• Install the new code (Note: three “/”s after bootflash)

hpchassis# install all kickstart bootflash:///m9100-s2ek9-kickstart-mz.4.2.3.bin system bootflash:///m9100-s2ek9-mz.4.2.3.bin
Verifying image bootflash:/m9100-s2ek9-kickstart-mz.4.2.3.bin for boot variable “kickstart”.
[####################] 100% — SUCCESS

Verifying image bootflash:/m9100-s2ek9-mz.4.2.3.bin for boot variable “system”.
[####################] 100% — SUCCESS

Extracting “system” version from image bootflash:/m9100-s2ek9-mz.4.2.3.bin.
[####################] 100% — SUCCESS

Extracting “kickstart” version from image bootflash:/m9100-s2ek9-kickstart-mz.4.2.3.bin.
[####################] 100% — SUCCESS

Extracting “bios” version from image bootflash:/m9100-s2ek9-mz.4.2.3.bin.
[####################] 100% — SUCCESS

Compatibility check is done:
Module bootable Impact Install-type Reason
—— ——– ————– ———— ——
1 yes disruptive reset Incompatible image

Images will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
—— ———- —————————————- ——————– ————
1 system 3.1(2a) 4.2(3) yes
1 kickstart 3.1(2a) 4.2(3) yes
1 bios v1.0.11(08/02/07): v1.0.11(08/02/07) v1.0.16(10/23/08) yes

Do you want to continue with the installation (y/n)? [n] y

Install is in progress, please wait.

Setting boot variables.
[####################] 100% — SUCCESS

Performing configuration copy.
[####################] 100% — SUCCESS

Module 1: Upgrading Bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[#######ø##### ] 63%

>> MDS-Bootloader-01.00.16 (Oct 23 2008 – 15:39:05), Build: 01.00.16

PowerPC
CPU: 8541, Version: 1.1, (0x807a0011)
Core: E500, Version: 2.0, (0x80200020)
Clocks: CPU: 799 MHz, CCB: 266 MHz,
DDR: 133 MHz, LBC: 33 MHz
L1: D-cache 32 kB enabled
I-cache 32 kB enabled
INFO: Booting off primary flash.
I2C: ready
DRAM: Total SDRAM memory is 512 MB
20000000
INFO: SDRAM tests PASSED.
DRAM: ECC initialization in progress…Done.
done.
INFO: Board rev = 3 type = 5 index 9034
L2 cache 256KB: enabled
IDE: Bus 0: OK
Device 0: Model: SILICONSYSTEMS INC 256MB Firm: 841-023 Ser#: 507CTW7DSt703SC0007
Type: Hard Disk
Capacity: 248.5 MB = 0.2 GB (508928 x 512)

Booting bootflash:/m9100-s2ek9-kickstart-mz.4.2.3.bin …
……………..
Automatic boot of image at addr 0x00000000 …
Starting kernel…
Entered kgdb_console_init:1975
INIT: version 2.85 booting
Checking all filesystems…..r done.
/etc/rc.d/rcS.d/S30procps: line 34: log_action_begin_msg: command not found
/etc/rc.d/rcS.d/S30procps: line 36: log_action_end_msg: command not found
Setting the System Clock using the Hardware Clock as reference…System Clock set. Local time: Wed Sep 21 05:07:21 UTC 2011
Loading system software
Uncompressing system image: bootflash:/m9100-s2ek9-mz.4.2.3.bin
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
INIT: Entering runlevel: 3
Starting NFS servers: nfsd mountd.

2011 Sep 21 05:08:07 hpchassis %KERN-2-SYSTEM_MSG: Starting kernel… – kernel
2011 Sep 21 05:08:07 hpchassis %KERN-1-SYSTEM_MSG: Entered kgdb_console_init:1975 – kernel

MDS Switch
hpchassis:

• Erase the current configuration and reboot the switch in npv mode:

hpchassis# conf term
Enter configuration commands, one per line. End with CNTL/Z.
hpchassis# npv enable
Verify that boot variables are set and the changes are saved. Changing to npv mode erases the current configuration and reboots the switch in npv mode. Do you want to continue? (y/n):y
>> MDS-Bootloader-01.00.16 (Oct 23 2008 – 15:39:05), Build: 01.00.16
PowerPC
CPU: 8541, Version: 1.1, (0x807a0011)
Core: E500, Version: 2.0, (0x80200020)
Clocks: CPU: 799 MHz, CCB: 266 MHz,
DDR: 133 MHz, LBC: 33 MHz
L1: D-cache 32 kB enabled
I-cache 32 kB enabled
INFO: Booting off primary flash.
I2C: ready
DRAM: Total SDRAM memory is 512 MB
20000000
INFO: SDRAM tests PASSED.
DRAM: ECC initialization in progress…Done.
done.
INFO: Board rev = 3 type = 5 index 9034
L2 cache 256KB: enabled
IDE: Bus 0: OK
Device 0: Model: SILICONSYSTEMS INC 256MB Firm: 841-023 Ser#: 507CTW7DSt703SC0007
Type: Hard Disk
Capacity: 248.5 MB = 0.2 GB (508928 x 512)

Booting bootflash:/m9100-s2ek9-kickstart-mz.4.2.3.bin …
……………..
Automatic boot of image at addr 0x00000000 …
Starting kernel…
Entered kgdb_console_init:1975
INIT: version 2.85 booting
Checking all filesystems..r.r.r.r done.
/etc/rc.d/rcS.d/S30procps: line 34: log_action_begin_msg: command not found
/etc/rc.d/rcS.d/S30procps: line 36: log_action_end_msg: command not found
Setting the System Clock using the Hardware Clock as reference…System Clock set. Local time: Wed Sep 21 05:24:55 UTC 2011
Loading system software
Uncompressing system image: bootflash:/m9100-s2ek9-mz.4.2.3.bin
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
n_port virtualizer mode.
—————————————————————
INIT: Entering runlevel: 3
Starting NFS servers: nfsd mountd.

2011 Sep 21 05:25:36 û­Ö”@D %KERN-2-SYSTEM_MSG: Starting kernel… – kernel
2011 Sep 21 05:25:36 û­Ö”@D %KERN-1-SYSTEM_MSG: Entered kgdb_console_init:1975 – kernel

Setup: system not completely online yet.
Waiting for the system to come online before saving the config.
Use ctrl-c at anytime to exit.

[########################################] 100%

MDS Switch
hpchassis:

sanaswati
No comments yet.

Leave a Reply

*