Catalyst 9300 Upgrading IOS-XE 16.6.2 onward (Install Mode)

End of Support and End of Life roll-up for Cisco AirOS Wireless, ASA and Switching

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 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

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 reload
Cat9300#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

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/16-12/release_notes/ol-16-12-9300.html#id_67613

6 thoughts on “Catalyst 9300 Upgrading IOS-XE 16.6.2 onward (Install Mode)

      1. The-IT-Guy

        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

        Like

      2. 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

        Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s