For the 9200 upgrade procedure! Catalyst 9200, Upgrading IOS-XE 16.9.2 onward (Install Mode)
Want to be part of a monthly newsletter covering Cloud, Digital Transformation, and Web3? Check out Apronomics: December, 2022
If you would like to skip to the code used to upgrade the switch, scroll to Appendix A.
This upgrade procedure is nearly identical to the Catalyst 9200 upgrade procedure.
Note: When upgrading..

First, check to see what mode your switch is running in. The preferred mode is INSTALL mode. In my case, it is running in INSTALL mode.
Prepare the switch to accept the new IOS-XE image by freeing up some storage.
Step 1. Remove Unwanted Packages Cat9300#install remove inactive
Step 2. Copy New Image to FlashCat9300#copy usbflash0:/cat9k_iosxe.x.x.x.SPA.bin flash:/


Step 3. Set Boot Variable Cat9300(config)#boot system flash:packages.conf
Cat9300(config)#end
Cat9300#wr
Cat9300#show boot system

Step 4. Software Install Image to Flash Cat9300#install add file flash:cat9k_iosxe.x.x.x.SPA.bin activate commit

Your screen will produce a similar output and requires a reload. Confirm a reload by hitting ‘y’.

It will take a couple of minutes to reload. After the reload, you can confirm your running mode, version and pkg files are in your flash directory.
Step 5. Verify New Packages and Image after reloadCat9300#dir flash:*.pkg

Step 6. Check Version and New Bootloader Cat9300#show version

Step 7. Clean up Cat9200#install remove inactive


Hope that this helps.
Mike
Appendix A
Step 1. Remove Unwanted Packages
Cat9300#install remove inactive
Step 2. Copy New Image to Flash
Cat9300#copy usbflash0:/cat9k_iosxe.x.x.x.SPA.bin flash:/
Step 3. Set Boot Variable
Cat9300(config)#boot system flash:packages.conf
Cat9300(config)#end
Cat9300#wr
Cat9300#show boot system
Step 4. Software Install Image to Flash
Cat9300#install add file flash: cat9k_iosxe.x.x.x.SPA.bin activate commit
Step 5. Verify New Packages and Image after reload
Cat9300#dir flash:*.pkg
Step 6. Check Version and New Bootloader
Cat9300#show version
Cat9300#show boot
thanks, clear and helpful
LikeLiked by 1 person
Thank you very much. Helped me during 9300 IOS upgrade. :))
LikeLiked by 1 person
You’re welcome! Let me know where else I can help!
LikeLike
Hi Mike,
Quick question Re Step 4:
Step 4. Software Install Image to Flash
Cat9300#install add file flash: cat9k_iosxe.x.x.x.SPA.bin activate commit
What if you have a stack switch scenario of lets say 3 switches, switch 1 being flash1, switch2 Flash2, and Switch3 flash3.
Do you install the image the same way as above, or do you apply the config for each flash for each Switch in the stack?
Thank you.
The-IT-Guy
LikeLike
Before step 4 but after step 3. We’ll call it step 3.1 for this purpose.
Step 3.1 – execute “request platform software package install switch all file flash:cat9k_iosxe.16.12.01.SPA.bin auto-copy”
You should execute this on the master. You will have an output similar to the below:
Expanding image file: flash:cat9k_iosxe.16.12.01.SPA.bin
[1]: Copying flash:cat9k_iosxe.16.12.01.SPA.bin from switch 1 to switch 2 3
[2 3]: Finished copying to switch 2 3
[1 2 3]: Expanding file
[1 2 3]: Finished expanding all-in-one software package in switch 1 2 3
SUCCESS: Finished expanding all-in-one software package.
[1 2 3]: Performing install
SUCCESS: install finished
[1]: install package(s) on switch 1
…
…
[1]: Finished install successful on switch 1
[2]: install package(s) on switch 2
…
…
SUCCESS: Software provisioned. New software will load on reboot.
[2]: Finished install successful on switch 2
[3]: install package(s) on switch 3
LikeLike
Thank you so much Mike.
LikeLike
Hi Mike,
There is no need to update romman image ?
LikeLike
Hi Akshay,
Updating ROMMON is generally not a requirement or even a recommendation unless there is a compelling reason to do so.
LikeLike