Last Updated on 03/04/2023 by administrator
Cisco 3850 IOS upgrade from 3.x.x to 16.x.x
Cisco 3850 IOS upgrade from 3.x.x to 16.x.x
Motivation:
This manual shows how to upload IOS via FTP or USB disk and upgrade IOS XE for switch Cisco Catalyst (C3850) series.
Implementation [1]:
First we need to make sure that we have available space on flash using command below,
Cat3850#software clean
Output from software clean command:
Preparing clean operation ... [1]: Cleaning up unnecessary package files [1]: No path specified, will use booted path flash:packages.conf [1]: Cleaning flash: [1]: Preparing packages list to delete ... In use files, will not delete: cat3k_caa-base.SPA.03.06.05E.pkg cat3k_caa-infra.SPA.03.06.05E.pkg cat3k_caa-iosd-universalk9.SPA.152-2.E5.pkg cat3k_caa-platform.SPA.03.06.05E.pkg cat3k_caa-wcm.SPA.10.2.150.0.pkg packages.conf Committed files, will not delete: cat3k_caa-drivers.SPA.03.06.05E.pkg [1]: No unnecessary package or provisioning files found. Nothing to clean
In this example we are going to use IOS XE called cat3k_caa-universalk9.16.12.08.SPA.bin. IOS image can be downloaded from this pages: https://software.cisco.com/download/home
Example of copy IOS file from FTP server (running under IP address 192.168.1.10) to C3850 series switch:
Cat3850#copy ftp://yourlogin:yourpassword@192.168.1.10/cat3k_caa-universalk9.16.12.08.SPA.bin flash:
or example of copy IOS file from USB disk to C3850 switch:
Cat3850#copy usbflash0:cat3k_caa-universalk9.16.12.08.SPA.bin flash:
MD5 verification:
Cat3850#verify /md5 cat3k_caa-universalk9.16.12.08.SPA.bin
Save running-config to startup-config:
Cat3850#wr
Command below execute software upgrade process. Keyword new is needed to create new packages file that will be used by boot up process. Keyword force that is very important because we are going from one major code version 3.x.x to 16.x.x, this will force the actual upgrade process otherwise the package compatibility check will fail:
Cat3850#software install file flash:/cat3k_caa-universalk9.16.12.08.SPA.bin new force
Output from software install file flash:/cat3k_caa-universalk9.16.12.08.SPA.bin new force command
Preparing install operation ... [1]: Starting install operation [1]: Expanding bundle flash:cat3k_caa-universalk9.16.12.08.SPA.bin [1]: Copying package files [1]: Package files copied [1]: Finished expanding bundle flash:cat3k_caa-universalk9.16.12.08.SPA.bin [1]: Verifying and copying expanded package files to flash: [1]: Verified and copied expanded package files to flash: [1]: Starting compatibility checks [1]: Bypassing peer package compatibility checks due to 'force' command option [1]: Finished compatibility checks [1]: Starting application pre-installation processing [1]: Finished application pre-installation processing [1]: Old files list: Removed cat3k_caa-base.SPA.03.06.05E.pkg Removed cat3k_caa-drivers.SPA.03.06.05E.pkg Removed cat3k_caa-infra.SPA.03.06.05E.pkg Removed cat3k_caa-iosd-universalk9.SPA.152-2.E5.pkg Removed cat3k_caa-platform.SPA.03.06.05E.pkg Removed cat3k_caa-wcm.SPA.10.2.150.0.pkg [1]: New files list: Added cat3k_caa-guestshell.16.12.08.SPA.pkg Added cat3k_caa-rpbase.16.12.08.SPA.pkg Added cat3k_caa-rpcore.16.12.08.SPA.pkg Added cat3k_caa-srdriver.16.12.08.SPA.pkg Added cat3k_caa-webui.16.12.08.SPA.pkg [1]: Creating pending provisioning file [1]: Finished installing software. New software will load on reboot. [1]: Committing provisioning file [1]: Do you want to proceed with reload? [yes/no]: y [1]: Reloading
It can take up to 20 mins to come back up because of microcode upgrade.
After switch reload, check version:
Cat3850#show version
Partial output from show version command shows that new version CAT9K IOS XE 16.12.08 is working:
Switch Ports Model SW Version SW Image Mode ------ ----- ----- ---------- ---------- ---- * 1 32 WS-C3850-24S 16.12.08 CAT3K_CAA-UNIVERSALK9 INSTALL
Verify New Packages and Image after reload:
Cat3850#dir flash:*.pkg
Output from dir flash:*.pkg:
Directory of flash:/ 54211 -rw- 83297376 Aug 24 2016 18:40:00 +02:00 cat3k_caa-base.SPA.03.06.05E.pkg 54212 -rw- 4012732 Aug 24 2016 18:40:01 +02:00 cat3k_caa-drivers.SPA.03.06.05E.pkg 54213 -rw- 33786860 Aug 24 2016 18:40:00 +02:00 cat3k_caa-infra.SPA.03.06.05E.pkg 54214 -rw- 43048256 Aug 24 2016 18:40:00 +02:00 cat3k_caa-iosd-universalk9.SPA.152-2.E5.pkg 54215 -rw- 28343180 Aug 24 2016 18:40:00 +02:00 cat3k_caa-platform.SPA.03.06.05E.pkg 54216 -rw- 111260480 Aug 24 2016 18:40:01 +02:00 cat3k_caa-wcm.SPA.10.2.150.0.pkg 7747 -rw- 20097668 Mar 21 2023 20:40:17 +01:00 cat3k_caa-guestshell.16.12.08.SPA.pkg 7748 -rw- 32791733 Mar 21 2023 20:40:17 +01:00 cat3k_caa-rpbase.16.12.08.SPA.pkg 7749 -rw- 401236604 Mar 21 2023 20:40:23 +01:00 cat3k_caa-rpcore.16.12.08.SPA.pkg 7750 -rw- 3418756 Mar 21 2023 20:40:23 +01:00 cat3k_caa-srdriver.16.12.08.SPA.pkg 7751 -rw- 23020160 Mar 21 2023 20:40:24 +01:00 cat3k_caa-webui.16.12.08.SPA.pkg 1621966848 bytes total (745816064 bytes free)
As can be seen, flash still include the old IOS XE packages. Command below do clean up unnecessary package files that are not in use:
Cat3850#request platform software package clean switch all file flash:
Partial output from request platform software package clean switch all file flash: command:
This operation may take several minutes... Running command on switch 1 Cleaning up unnecessary package files Scanning boot directory for packages ... done. Preparing packages list to delete ... packages.conf File is in use, will not delete. cat3k_caa-guestshell.16.12.08.SPA.pkg File is in use, will not delete. cat3k_caa-rpbase.16.12.08.SPA.pkg File is in use, will not delete. cat3k_caa-rpcore.16.12.08.SPA.pkg File is in use, will not delete. cat3k_caa-srdriver.16.12.08.SPA.pkg File is in use, will not delete. cat3k_caa-webui.16.12.08.SPA.pkg File is in use, will not delete. done. The following files will be deleted: [switch 1]: /flash/cat3k_caa-base.SPA.03.06.05E.pkg /flash/cat3k_caa-drivers.SPA.03.06.05E.pkg /flash/cat3k_caa-infra.SPA.03.06.05E.pkg /flash/cat3k_caa-iosd-universalk9.SPA.152-2.E5.pkg /flash/cat3k_caa-platform.SPA.03.06.05E.pkg /flash/cat3k_caa-wcm.SPA.10.2.150.0.pkg /flash/packages.conf.00- Do you want to proceed? [y/n]y [switch 1]: Deleting file flash:cat3k_caa-base.SPA.03.06.05E.pkg ... done. Deleting file flash:cat3k_caa-drivers.SPA.03.06.05E.pkg ... done. Deleting file flash:cat3k_caa-infra.SPA.03.06.05E.pkg ... done. Deleting file flash:cat3k_caa-iosd-universalk9.SPA.152-2.E5.pkg ... done. Deleting file flash:cat3k_caa-platform.SPA.03.06.05E.pkg ... done. Deleting file flash:cat3k_caa-wcm.SPA.10.2.150.0.pkg ... done. Deleting file flash:packages.conf.00- ... done. SUCCESS: Files deleted.
Save running-config to startup-config:
Cat3850#wr
And that’s all!
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
Source:
[1] https://www.youtube.com/watch?v=bX006rPu4pA&ab_channel=VA4AFK