Cisco 3850 IOS switch upgrade from 3.x.x to 16.x.x

By | 21/03/2023

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

Dobrovolný dar

Ahoj čtenáři, rád bych tě poprosil aby ses zamyslel, co je vše potřeba ke vzniku článku.
Jakožto amatérský softwarový kutil musím:

1) Nejdříve vše nastudovat v cizích jazycích.
2) Vše následně prakticky vyzkoušet.
3) Svoje poznatky a zkušenosti napsat do článku který si právě přečetl v jazyku kterému rozumíš.
4) Dát článku hlavu a patu a publikovat.

Každý článek zabere několik hodin práce, za kterou mi nikdo neplatí.
Prosím zvaž, kolik času jsem ti právě ušetřil.
Pokud ti to stojí aspoň za cenu jedné kávy, tak mi ji kup.
Předem moc děkuji.

Příspěvek tak můžeš provést zasláním libovolné částky na mé číslo účtu 1558701011/3030 Nebo můžeš dar poslat kliknutím na tento odkaz Podpořit tento WEB , který tě přesměruje na mou platební bránu Revolut.

Dar je také možné poslat ve formě Bitcoinu na BTC peněženku bc1qqdf5fp42a7srwwhh2rut8zr9x4jm5c8fqc9qw6

Veškeré peněžní prostředky budu také používat na zlepšení kvality své webové tvorby a na psaní nových technických návodů. Za každý dar předem děkuji.

Leave a Reply

Your email address will not be published. Required fields are marked *