request platform software package clean switch all file flash:
First written 2022-11-28; Last updated 2024-09-09
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. |
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.
Copy image and update boot variables:
boot system flash bootflash:...
write memory
Then reload.
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.
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!
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.
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
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
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
.
Copy image(s) and EPLD to bootflash of primary SUP, then update.
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
install all nxos bootflash:nxos.9.3.10.bin epld bootflash:n9000-epld.9.3.10.img
Last updated 2024-09-09