Cisco updates command line cheat sheet

First written 2022-11-28; Last updated 2023-12-30

Cheat sheet to perform updates on Cisco devices (IOS, NX-OS).

Note
These updates are not hitless! If you need to prevent traffic interruptions check the official update instructions for details.

IOS: WS-C3650-48PQ-L

Using install mode (separate pkg files in flash; contrast to bundle mode)

Clean old files on flash:

request platform software package clean switch all file flash:

Copy file to flash (e.g. via tftp). Install update ("new" for upgrade, "auto-copy" copies to all switches in stack):

request platform software package install switch all file flash:cat3k_caa-universalk9.16.12.01.SPA.bin new auto-copy

Reload switch to finish update.

IOS: C4500-E

IOS

Copy image and update boot variables:

boot system flash bootflash:...
write memory

Then reload.

ROMMON of SUP (WS-X45-SUP6-E, WS-X45-SUP6-LE, WS-C4900M, WS-C4948E, and WS-C4948E-F)

To update via telnet/ssh the ROMMON-Update must be loaded as first boot variable:

no boot system flash
write memory
boot system flash bootflash:cat4500-e-ios-promupgrade-122_44r_SG10
boot system flash bootflash:cat4500e-entservicesk9-mz.152-2.E8.bin
write memory

Verify settings (both images and configuration register should be 0x2102)

show bootvar

Then reload. Afterwards remove the ROMMON-Upgrade boot variable.

ROMMON of linecards

show rom-monitor slot $x
upgrade rom-monitor slot $x file bootflash:...
show rom-monitor slot $x
! Reload the module for changes to take effect
hw-module module $x reset

Check the log for any errors, they are not written to the SSH session!

IOS: Catalyst 6800 with SUP2T10G

ROMMON Upgrade

Check running version:

sh rom-monitor slot 3 sp
sh rom-monitor slot 4 sp

Flash new version, force failover to other SUP:

upgrade rom-monitor slot 3 file bootdisk:pyramid_rm2.srec.122-50r.SYS4
redundancy force-switchover

Afterwards run sh rom-monitor again and if new version is used flash second SUP.

FGPA Upgrade

If the switch logs "%C6K_PLATFORM-SW2-2-CRITICAL_FPGA_UPGRADE" "UPDATE REQUIRED" then update the corresponding line cards with:

upgrade winters-flash slot $slot-number bundled-image gold

Followed by:

upgrade winters-flash slot $slot-number bundled-image

IOS XE: Catalyst 3k, 9k (C3K, C9K)

copy http://example.org/cat9k_iosxe.17.03.05.SPA.bin bootflash:
install add file bootflash:cat9k_iosxe.17.03.05.SPA.bin activate commit
install remove inactive

ROMMON update is automatic; no manually update is necessary

SX550-X (Small Business)

Copy the new image to the switch:

boot system tftp://example.org/image.bin

Check the correct version will boot:

sh version

Reboot with reload.

NX-OS

Copy image(s) and EPLD to bootflash of primary SUP, then update.

N7K

install all kickstart bootflash:n7000-s2-kickstart.8.4.6.bin system bootflash:n7000-s2-dk9.8.4.6.bin

After the update and if EPLD auto-update is not enabled run:

install all epld bootflash:n7000-s2-epld.8.4.6.img

N9K

install all nxos bootflash:nxos.9.3.10.bin epld bootflash:n9000-epld.9.3.10.img

Last updated 2023-12-30

Impressum Datenschutzerklärung