Last Updated on 21/03/2023 by administrator
Cisco 9300 IOS upgrade
Cisco 9300 IOS upgrade (Cisco Catalyst 9300)
Motivation:
This manual shows how to upload IOS via FTP or USB disk and upgrade IOS for switch Cisco Catalyst (C9300) series.
Implementation [1]:
In this example we are going to use IOS called cat9k_iosxe.16.12.04.SPA.bin. IOS image can be downloaded from this pages: https://software.cisco.com/download/home
Remove Unwanted Packages from flash:
Cat9300#install remove inactive
Example of copy IOS file from FTP server (running under IP address 192.168.1.10) to C9300 switch:
Cat9300#copy ftp://yourlogin:yourpassword@192.168.1.10/cat9k_iosxe.16.12.04.SPA.bin flash:
or example of copy IOS file from USB disk to C9300 switch:
Cat9300#copy usbflash0:cat9k_iosxe.16.12.04.SPA.bin flash:
Progress and successful copy of IOS to C9300 switch flash memory:
Destination filename [cat9k_iosxe.16.12.04.SPA.bin]? Accessing ftp://*:*@192.168.1.10/cat9k_iosxe.16.12.04.SPA.bin...!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 805827585/4096 bytes] 805827585 bytes copied in 2295.733 secs (351011 bytes/sec)
SHA512 verification:
Cat9300#verify /sha512 cat3k_caa-universalk9.16.12.05b.SPA.bin
Partial output from SHA512 verification:
........................................................................................................................................................Done! verify /sha512 (flash:cat9k_iosxe.16.12.04.SPA.bin) = 3e049849fce0c7522d1515dadc7d8c1cbbe7507614863ba4946b392120f9229add0acc0b8995c21f2791677b1441af50490f2960b11e01f9ceb4ca94cd5de2df
Set Boot Variable:
Cat9300(config)#boot system flash:packages.conf
Check Boot Variable settings:
Cat9300#show boot system
Partial output from show boot system command:
Boot Variables on next reload: BOOT variable = flash:packages.conf; Manual Boot = no Enable Break = no Boot Mode = DEVICE iPXE Timeout = 0
Save running-config to startup-config:
Cat9300#wr
Install Software Image to Flash:
Cat9300#install add file flash:cat9k_iosxe.16.12.04.SPA.bin activate commit
Partial output from install add file flash:cat9k_iosxe.16.12.04.SPA.bin activate commit command:
install_add_activate_commit: START Tue Feb 28 11:57:58 UTC 2023 *Feb 28 11:58:00.237: %INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_engine: Started install one-shot flash:cat9k_iosxe.16.12.04.SPA.bininstall_add_activate_commit: Adding PACKAGE install_add_activate_commit: Checking whether new add is allowed .... --- Starting initial file syncing --- Info: Finished copying flash:cat9k_iosxe.16.12.04.SPA.bin to the selected switch(es) Finished initial file syncing --- Starting Add --- Performing Add on all members [1] Add package(s) on switch 1 [1] Finished Add on switch 1 Checking status of Add on [1] Add: Passed on [1] Finished Add Image added. Version: 16.12.4.0.4480 install_add_activate_commit: Activating PACKAGE Following packages shall be activated: /flash/cat9k-wlc.16.12.04.SPA.pkg /flash/cat9k-webui.16.12.04.SPA.pkg /flash/cat9k-srdriver.16.12.04.SPA.pkg /flash/cat9k-sipspa.16.12.04.SPA.pkg /flash/cat9k-sipbase.16.12.04.SPA.pkg /flash/cat9k-rpboot.16.12.04.SPA.pkg /flash/cat9k-rpbase.16.12.04.SPA.pkg /flash/cat9k-guestshell.16.12.04.SPA.pkg /flash/cat9k-espbase.16.12.04.SPA.pkg /flash/cat9k-cc_srdriver.16.12.04.SPA.pkg
Confirm it „y“. It will take a couple of minutes to reload.
This operation may require a reload of the system. Do you want to proceed? [y/n] y
Partial output continuation from install add file flash:cat9k_iosxe.16.12.04.SPA.bin activate commit command:
--- Starting Activate --- Performing Activate on all members [1] Activate package(s) on switch 1 --- Starting list of software package changes --- Old files list: Removed cat9k-cc_srdriver.16.12.02.SPA.pkg Removed cat9k-espbase.16.12.02.SPA.pkg Removed cat9k-guestshell.16.12.02.SPA.pkg Removed cat9k-rpbase.16.12.02.SPA.pkg Removed cat9k-rpboot.16.12.02.SPA.pkg Removed cat9k-sipbase.16.12.02.SPA.pkg Removed cat9k-sipspa.16.12.02.SPA.pkg Removed cat9k-srdriver.16.12.02.SPA.pkg Removed cat9k-webui.16.12.02.SPA.pkg Removed cat9k-wlc.16.12.02.SPA.pkg New files list: Added cat9k-cc_srdriver.16.12.04.SPA.pkg Added cat9k-espbase.16.12.04.SPA.pkg Added cat9k-guestshell.16.12.04.SPA.pkg Added cat9k-rpbase.16.12.04.SPA.pkg Added cat9k-rpboot.16.12.04.SPA.pkg Added cat9k-sipbase.16.12.04.SPA.pkg Added cat9k-sipspa.16.12.04.SPA.pkg Added cat9k-srdriver.16.12.04.SPA.pkg Added cat9k-webui.16.12.04.SPA.pkg Added cat9k-wlc.16.12.04.SPA.pkg Finished list of software package changes [1] Finished Activate on switch 1 Checking status of Activate on [1] Activate: Passed on [1] Finished Activate *Feb 28 12:03:34.834: %INSTALL-5-INSTALL_AUTO_ABORT_TIMER_PROGRESS: Switch 1 R0/0: rollback_timer: Install auto abort timer will expire in 7200 seconds--- Starting Commit --- Performing Commit on all members [1] Commit package(s) on switch 1 [1] Finished Commit on switch 1 Checking status of Commit on [1] Commit: Passed on [1] Finished Commit [1]: Performing Upgrade_Service %IOSXEBOOT-4-BOOTLOADER_UPGRADE: (local/local): Starting boot preupgrade 300+0 records in 300+0 records out 307200 bytes (307 kB, 300 KiB) copied, 0.315851 s, 973 kB/s MM [1] MCU version 190 sw ver 188 MM [2] MCU version 190 sw ver 188 MCU UPGRADE IN PROGRESS... PLEASE DO NOT POWER CYCLE!! Front-end Microcode IMG MGR: found 4 microcode images for 1 device. Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_0 update needed: no Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_1 update needed: yes Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_2 update needed: yes Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_3 update needed: no Front-end Microcode IMG MGR: Preparing to program device microcode... Front-end Microcode IMG MGR: Preparing to program device[0], index=0 ...594412 bytes.... Skipped[0]. Front-end Microcode IMG MGR: Preparing to program device[0], index=1 ...379310 bytes. Front-end Microcode IMG MGR: Programming device 0...rwRrrrrrrw..0%.......................................................................10%......................................................................20%......................................................................30%.......................................................................40%......................................................................50%......................................................................60%......................................................................70%.......................................................................80%......................................................................90%......................................................................100% Front-end Microcode IMG MGR: Preparing to program device[0], index=2 ...24506 bytes. Front-end Microcode IMG MGR: Programming device 0...rrrrrrw..0%....10%....20%......30%...40%....50%......60%....70%.....80%....90%....100%wRr! Front-end Microcode IMG MGR: Microcode programming complete for device 0. Front-end Microcode IMG MGR: Preparing to program device[0], index=3 ...90974 bytes.... Skipped[3]. Front-end Microcode IMG MGR: Microcode programming complete in 247 seconds MCU UPGRADE COMPLETED!!... SUCCESS: Upgrade_Service finished Install will reload the system now! SUCCESS: install_add_activate_commit Tue Feb 28 12:08:13 UTC 2023 Switch# Chassis 1 reloading, reason - Reload command *Feb 28 12:08:14.257: %INSTALL-5-INSTALL_COMPLETED_INFO: Switch 1 R0/0: install_engine: Completed install one-shot PACKAGE flash:cat9k_iosxe.16.12.04.SPA.binreload fp action requested rp processes exit with reload switch code Initializing Hardware... System Bootstrap, Version 16.12.2r, RELEASE SOFTWARE (P) Compiled Wed 10/23/2019 16:35:17.50 by rel Current ROMMON image : Primary Last reset cause : SoftwareReload C9300-24S platform with 8388608 Kbytes of main memory boot: attempting to boot from [flash:packages.conf] boot: reading file packages.conf # ######################################################################################################################################################################################################################################################################################################################################################################################################################### Both links down, not waiting for other switches Switch number is 1 Restricted Rights Legend Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c) of the Commercial Computer Software - Restricted Rights clause at FAR sec. 52.227-19 and subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS sec. 252.227-7013. Cisco Systems, Inc. 170 West Tasman Drive San Jose, California 95134-1706 Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.4, RELEASE SOFTWARE (fc5) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2020 by Cisco Systems, Inc. Compiled Thu 09-Jul-20 21:49 by mcpre This software version supports only Smart Licensing as the software licensing mechanism. PLEASE READ THE FOLLOWING TERMS CAREFULLY. INSTALLING THE LICENSE OR LICENSE KEY PROVIDED FOR ANY CISCO SOFTWARE PRODUCT, PRODUCT FEATURE, AND/OR SUBSEQUENTLY PROVIDED SOFTWARE FEATURES (COLLECTIVELY, THE "SOFTWARE"), AND/OR USING SUCH SOFTWARE CONSTITUTES YOUR FULL ACCEPTANCE OF THE FOLLOWING TERMS. YOU MUST NOT PROCEED FURTHER IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE TERMS SET FORTH HEREIN. Your use of the Software is subject to the Cisco End User License Agreement (EULA) and any relevant supplemental terms (SEULA) found at http://www.cisco.com/c/en/us/about/legal/cloud-and-software/software-terms.html. You hereby acknowledge and agree that certain Software and/or features are licensed for a particular term, that the license to such Software and/or features is valid only for the applicable term and that such Software and/or features may be shut down or otherwise terminated by Cisco after expiration of the applicable license term (e.g., 90-day trial period). Cisco reserves the right to terminate any such Software feature electronically or by any other means available. While Cisco may provide alerts, it is your sole responsibility to monitor your usage of any such term Software feature to ensure that your systems and networks are prepared for a shutdown of the Software feature. FIPS: Flash Key Check : Key Not Found, FIPS Mode Not Enabled All TCP AO KDF Tests Pass cisco C9300-24S (X86) processor with 1343576K/6147K bytes of memory. Processor board ID FOC2348U027 2048K bytes of non-volatile configuration memory. 8388608K bytes of physical memory. 1638400K bytes of Crash Files at crashinfo:. 11264000K bytes of Flash at flash:. 0K bytes of WebUI ODM Files at webui:. Base Ethernet MAC Address : a0:b4:39:d7:bb:00 Motherboard Assembly Number : 73-19407-04 Motherboard Serial Number : FOC23464ACA Model Revision Number : D0 Motherboard Revision Number : C0 Model Number : C9300-24S System Serial Number : FOC2348U027 Press RETURN to get started!
Verify New Packages and Image after reload:
Cat9300#dir flash:*.pkg
Output from dir flash:*.pkg:
Directory of flash:/ 598020 -rw- 18289676 Apr 7 2022 10:48:57 +01:00 cat9k-cc_srdriver.17.03.04.SPA.pkg 598021 -rw- 104526856 Apr 7 2022 10:48:57 +01:00 cat9k-espbase.17.03.04.SPA.pkg 598022 -rw- 2262024 Apr 7 2022 10:48:57 +01:00 cat9k-guestshell.17.03.04.SPA.pkg 598023 -rw- 5124 Apr 7 2022 10:48:57 +01:00 cat9k-lni.17.03.04.SPA.pkg 598024 -rw- 599221252 Apr 7 2022 10:48:57 +01:00 cat9k-rpbase.17.03.04.SPA.pkg 598025 -rw- 34874376 Apr 7 2022 10:48:57 +01:00 cat9k-sipbase.17.03.04.SPA.pkg 598026 -rw- 57082884 Apr 7 2022 10:48:57 +01:00 cat9k-sipspa.17.03.04.SPA.pkg 598027 -rw- 29717512 Apr 7 2022 10:48:57 +01:00 cat9k-srdriver.17.03.04.SPA.pkg 598028 -rw- 14431236 Apr 7 2022 10:48:57 +01:00 cat9k-webui.17.03.04.SPA.pkg 598029 -rw- 9220 Apr 7 2022 10:48:57 +01:00 cat9k-wlc.17.03.04.SPA.pkg 598031 -rw- 47407779 Apr 7 2022 10:48:57 +01:00 cat9k-rpboot.17.03.04.SPA.pkg 16389 -rw- 14464008 May 10 2022 10:58:16 +01:00 cat9k-cc_srdriver.16.12.04.SPA.pkg 16390 -rw- 89134084 May 10 2022 10:58:16 +01:00 cat9k-espbase.16.12.04.SPA.pkg 16391 -rw- 1684484 May 10 2022 10:58:16 +01:00 cat9k-guestshell.16.12.04.SPA.pkg 16392 -rw- 531063808 May 10 2022 10:58:16 +01:00 cat9k-rpbase.16.12.04.SPA.pkg 16398 -rw- 41799673 May 10 2022 10:59:07 +01:00 cat9k-rpboot.16.12.04.SPA.pkg 16393 -rw- 31478788 May 10 2022 10:58:16 +01:00 cat9k-sipbase.16.12.04.SPA.pkg 16394 -rw- 60392448 May 10 2022 10:58:16 +01:00 cat9k-sipspa.16.12.04.SPA.pkg 16395 -rw- 23217156 May 10 2022 10:58:16 +01:00 cat9k-srdriver.16.12.04.SPA.pkg 16396 -rw- 12907520 May 10 2022 10:58:16 +01:00 cat9k-webui.16.12.04.SPA.pkg 16397 -rw- 9216 May 10 2022 10:58:16 +01:00 cat9k-wlc.16.12.04.SPA.pkg 11353194496 bytes total (8000692224 bytes free)
Check Version:
Cat9300#show version
Partial output from show version command shows that new version CAT9K IOS XE 16.12.4 is working:
Switch Ports Model SW Version SW Image Mode ------ ----- ----- ---------- ---------- ---- * 1 41 C9300-24S 16.12.4 CAT9K_IOSXE INSTALL
Command below do clean up unnecessary package files that are not in use:
Cat9300#install remove inactive
Partial output from install remove inactive command:
install_remove: START Tue Feb 28 12:32:27 UTC 2023 *Feb 28 12:32:28.796: %INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_engine: Started install remove Cleaning up unnecessary package files No path specified, will use booted path flash:packages.conf Cleaning flash: Scanning boot directory for packages ... done. Preparing packages list to delete ... cat9k-cc_srdriver.16.12.04.SPA.pkg File is in use, will not delete. cat9k-espbase.16.12.04.SPA.pkg File is in use, will not delete. cat9k-guestshell.16.12.04.SPA.pkg File is in use, will not delete. cat9k-rpbase.16.12.04.SPA.pkg File is in use, will not delete. cat9k-rpboot.16.12.04.SPA.pkg File is in use, will not delete. cat9k-sipbase.16.12.04.SPA.pkg File is in use, will not delete. cat9k-sipspa.16.12.04.SPA.pkg File is in use, will not delete. cat9k-srdriver.16.12.04.SPA.pkg File is in use, will not delete. cat9k-webui.16.12.04.SPA.pkg File is in use, will not delete. cat9k-wlc.16.12.04.SPA.pkg File is in use, will not delete. packages.conf File is in use, will not delete. done. The following files will be deleted: [switch 1]: /flash/cat9k-cc_srdriver.16.12.02.SPA.pkg /flash/cat9k-espbase.16.12.02.SPA.pkg /flash/cat9k-guestshell.16.12.02.SPA.pkg /flash/cat9k-rpbase.16.12.02.SPA.pkg /flash/cat9k-rpboot.16.12.02.SPA.pkg /flash/cat9k-sipbase.16.12.02.SPA.pkg /flash/cat9k-sipspa.16.12.02.SPA.pkg /flash/cat9k-srdriver.16.12.02.SPA.pkg /flash/cat9k-webui.16.12.02.SPA.pkg /flash/cat9k-wlc.16.12.02.SPA.pkg /flash/cat9k_iosxe.16.12.04.SPA.bin /flash/cat9k_iosxe.16.12.04.SPA.conf
Confirm it „y“ to remove the files above:
Do you want to remove the above files? [y/n] y
Partial output continuation remove IOS that is not in use:
[switch 1]: Deleting file flash:cat9k-cc_srdriver.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-espbase.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-guestshell.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-rpbase.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-rpboot.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-sipbase.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-sipspa.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-srdriver.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-webui.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k-wlc.16.12.02.SPA.pkg ... done. Deleting file flash:cat9k_iosxe.16.12.04.SPA.bin ... done. Deleting file flash:cat9k_iosxe.16.12.04.SPA.conf ... done. SUCCESS: Files deleted. --- Starting Post_Remove_Cleanup --- Performing Post_Remove_Cleanup on all members [1] Post_Remove_Cleanup package(s) on switch 1 [1] Finished Post_Remove_Cleanup on switch 1 Checking status of Post_Remove_Cleanup on [1] Post_Remove_Cleanup: Passed on [1] Finished Post_Remove_Cleanup SUCCESS: install_remove Tue Feb 28 12:36:11 UTC 2023
All done.
Source:
[1] https://apronets.com/2019/10/24/catalyst-9300-upgrading-ios-xe-16-6-2-onward-install-mode/
Another article:
This manual how to upgrade Cisco 3850 IOS switch stack from 16.x.x to 16.y.y.
How to upgrade Cisco 3850 IOS switch stack
Cisco 3850 IOS switch stack upgrade 16.x.x to 16.x.y install mode