Saturday, April 1, 2023

Cisco 3850 Switch IOS-XE Downgrade 16.x to 3.x

Here's a link where you can find all Cisco Visio stencils/icons.

You can downgrade a Cisco 3850 or 3650 Catalyst switch from IOS-XE 16.x to 3.x. In this case, the Cisco 3850 runs a "newer" 16.6.2 software code.


C3850#show version
Cisco IOS XE Software, Version 16.06.02
Cisco IOS Software [Everest], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.6.2, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 01-Nov-17 04:27 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2017 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON
BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 3.58, RELEASE SOFTWARE (P)

C3850 uptime is 2 minutes
Uptime for this control processor is 6 minutes
System returned to ROM by Power Failure at 08:44:43 UTC Mon Nov 4 2019
System image file is "flash:packages.conf"
Last reload reason: Power Failure


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

          
Technology Package License Information:

-----------------------------------------------------------------
Technology-package                   Technology-package
Current             Type             Next reboot  
------------------------------------------------------------------
ipbasek9            Permanent        ipbasek9

cisco WS-C3850-48P (MIPS) processor (revision AB0) with 853402K/6147K bytes of memory.
Processor board ID FOC21051234
1 Virtual Ethernet interface
104 Gigabit Ethernet interfaces
8 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
252000K bytes of Crash Files at crashinfo:.
1611414K bytes of Flash at flash:.
0K bytes of WebUI ODM Files at webui:.

Base Ethernet MAC Address          : cc:98:91:1e:12:34
Motherboard Assembly Number        : 73-15800-08
Motherboard Serial Number          : FOC21265678
Model Revision Number              : AB0
Motherboard Revision Number        : A0
Model Number                       : WS-C3850-48P
System Serial Number               : FOC21051234


Switch Ports Model              SW Version        SW Image              Mode   
------ ----- -----              ----------        ----------            ----   
*    1 56    WS-C3850-48P       16.6.2            CAT3K_CAA-UNIVERSALK9 INSTALL


Configuration register is 0x102

You can use the privileged exec command request platform software package clean switch all file flash to remove old package files.

 
C3850#dir
Directory of flash:/

77602  -rw-          2097152  Feb 22 2023 00:06:10 +00:00  nvram_config
77603  -rw-          2097152  Feb 22 2023 00:06:11 +00:00  nvram_config_bkup
77604  -rw-         19167872  Dec 15 2017 15:38:59 +00:00  cat3k_caa-guestshell.16.06.02.SPA.pkg
77605  -rw-         27906419  Dec 15 2017 15:38:57 +00:00  cat3k_caa-rpbase.16.06.02.SPA.pkg
77606  -rw-        331268728  Dec 15 2017 15:38:59 +00:00  cat3k_caa-rpcore.16.06.02.SPA.pkg
77607  -rw-         15323776  Dec 15 2017 15:38:57 +00:00  cat3k_caa-srdriver.16.06.02.SPA.pkg
15521  -rw-         16181884  Dec 15 2017 15:38:57 +00:00  cat3k_caa-webui.16.06.02.SPA.pkg
15522  -rw-             4754  Dec 15 2017 15:39:17 +00:00  packages.conf
 7761  drwx             4096  Feb 22 2023 00:02:08 +00:00  .installer
15523  -rw-             1147  Feb 22 2023 00:02:30 +00:00  bootloader_evt_handle.log
15524  drwx             4096  May 23 2019 01:09:23 +00:00  core
23281  drwx             4096  May 23 2019 01:14:21 +00:00  .prst_sync
38801  drwx             4096  Dec 15 2017 15:41:55 +00:00  .rollback_timer
46561  drwx             4096  Dec 15 2017 15:42:04 +00:00  gs_script
54321  drwx             4096  Feb 22 2023 00:02:48 +00:00  dc_profile_dir
15525  -rw-            98869  Feb 22 2023 00:03:09 +00:00  memleak.tcl
77609  -rw-               35  Feb 21 2023 03:27:21 +00:00  pnp-tech-time
77610  -rw-            49833  Feb 21 2023 03:27:24 +00:00  pnp-tech-discovery-summary
 7762  drwx             4096   Mar 8 2018 05:04:09 +00:00  onep
77608  -rw-            19431  Nov 29 2018 01:19:25 +00:00  logfile.txt

1624104960 bytes total (1035522048 bytes free)


C3850#request platform software package clean switch all file flash:
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 ...
    cat3k_caa-guestshell.16.06.02.SPA.pkg
      File is in use, will not delete.
    cat3k_caa-rpbase.16.06.02.SPA.pkg
      File is in use, will not delete.
    cat3k_caa-rpcore.16.06.02.SPA.pkg
      File is in use, will not delete.
    cat3k_caa-srdriver.16.06.02.SPA.pkg
      File is in use, will not delete.
    cat3k_caa-webui.16.06.02.SPA.pkg
      File is in use, will not delete.
    packages.conf
      File is in use, will not delete.
  done.
 
SUCCESS: No extra package or provisioning files found on media. Nothing to clean.


This syslog will appear once an external USB flash drive is inserted.

C3850#sd 1:0:0:0: [sdb] Asking for cache data failed
sd 1:0:0:0: [sdb] Assuming drive cache: write through


*Feb 22 00:09:53.260: %IOSXE-5-PLATFORM: Switch 1 R0/0: kernel: scsi 1:0:0:0: Direct-Access     Imation  Nano             1.20 PQ: 0 ANSI: 2
*Feb 22 00:09:53.262: %IOSXE-5-PLATFORM: Switch 1 R0/0: kernel: sd 1:0:0:0: [sdb] 3948544 512-byte logical blocks: (2.02 GB/1.88 GiB)
*Feb 22 00:09:53.314: %IOSXE-3-PLATFORM: Switch 1 R0/0: kernel: sd 1:0:0:0: [sdb] Asking for cache data failed
*Feb 22 00:09:53.314: %IOSXE-4-PLATFORM: Switch 1 R0/0: kernel: sd 1:0:0:0: [sdb] Assuming drive cache: write through
*Feb 22 00:09:53.443: %PLATFORM_FEP-1-FRU_PS_ACCESS: Switch 1: power supply B is not respondingFAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

*Feb 22 00:09:53.696: %IOSXE-5-PLATFORM: Switch 1 R0/0: kernel: sd 1:0:0:0: [sdb] Attached SCSI removable disk
*Feb 22 00:09:54.761: %IOSXE-4-PLATFORM: Switch 1 R0/0: kernel: FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
*Feb 22 00:09:54.796: %IOSD_INFRA-6-IFS_DEVICE_OIR: Device usbflash0 added

It's easy and much faster to copy/transfer IOS-XE files via USB. In this case I've transferred an "old" IOS-XE 3.6.7 to flash.


C3850#copy usbflash0:/cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.bin flash
Destination filename [cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.bin]?
Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
*Feb 22 00:10:56.054: %PLATFORM-4-ELEMENT_WARNING: Switch 1 R0/0: smand:  1/RP/0: limited space - copy corefiles/switch-reports out of flash:core & crashinfo: directories. flash:core value 5% (86 MB) exceeds warning level 5% (79 MB)CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
305199560 bytes copied in 51.363 secs (5942012 bytes/sec)

You can use the "newer" way to upgrade or downgrade using the request platform software package install switch all file flash:<IOS-XE> new auto-copy privileged exec command. In this case I "downgrade" to the old IOS-XE 3.6.7 code. 

Issue a reload command for the new code to take effect.


C3850#request platform software package install switch all file flash:cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.bin new auto-copy
--- Starting install local lock acquisition on switch 1 ---
Finished install local lock acquisition on switch 1

Expanding image file: flash:cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.bin

*Feb 22 00:12:34.191: %IOSXE-5-PLATFORM: Switch 1 R0/0: Feb 22 00:12:34 provision.sh: %INSTALL-5-OPERATION_START_INFO: Started install package flash:cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.bin[1]: Expanding file

*Feb 22 00:12:36.865: %IOSXE-5-PLATFORM: Switch 1 R0/0: Feb 22 00:12:36 packtool.sh: %INSTALL-5-OPERATION_START_INFO: Started expand package flash:cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.bin[1]: Finished expanding all-in-one software package in switch 1
SUCCESS: Finished expanding all-in-one software package.

*Feb 22 00:13:14.163: %IOSXE-5-PLATFORM: Switch 1 R0/0: Feb 22 00:13:14 packtool.sh: %INSTALL-5-OPERATION_COMPLETED_INFO: Completed expand package flash:cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.bin[1]: Performing install
  SUCCESS: install finished
[1]: install package(s) on switch 1
--- Starting list of software package changes ---
Old files list:
  Removed cat3k_caa-guestshell.16.06.02.SPA.pkg
  Removed cat3k_caa-rpbase.16.06.02.SPA.pkg
  Removed cat3k_caa-rpcore.16.06.02.SPA.pkg
  Removed cat3k_caa-srdriver.16.06.02.SPA.pkg
  Removed cat3k_caa-webui.16.06.02.SPA.pkg
New files list:
  Added cat3k_caa-base.SPA.03.06.07E.pkg
  Added cat3k_caa-drivers.SPA.03.06.07E.pkg
  Added cat3k_caa-infra.SPA.03.06.07E.pkg
  Added cat3k_caa-iosd-universalk9.SPA.152-2.E7.pkg
  Added cat3k_caa-platform.SPA.03.06.07E.pkg
  Added cat3k_caa-wcm.SPA.10.2.170.0.pkg
Finished list of software package changes
SUCCESS: Software provisioned.  New software will load on reboot.
[1]: Finished install successful on switch 1
Checking status of install on [1]
[1]: Finished install in switch 1
SUCCESS: Finished install: Success on [1]

*Feb 22 00:14:08.288: %IOSXE-5-PLATFORM: Switch 1 R0/0: Feb 22 00:14:08 provision.sh: %INSTALL-5-OPERATION_COMPLETED_INFO: Completed install package flash:{cat3k_caa-base.SPA.03.06.07E.pkg,cat3k_caa-drivers.SPA.03.06.07E.pkg,cat3k_caa-infra.SPA.03.06.07E.pkg,cat3k_caa-iosd-universalk9.SPA.152-2.E7.pkg,cat3k_caa-platform.SPA.03.06.07E.pkg,cat3k_caa-wcm.SPA.10.2.170.0.pkg}

C3850#reload
Reload command is being issued on Active unit, this will reload the whole stack
Proceed with reload? [confirm]

*Feb 22 00:15:06.788: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.

<OUTPUT TRUNCATED>


C3850#show version
Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.06.07E RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Wed 12-Jul-17 16:55 by prod_rel_team


Cisco IOS-XE software, Copyright (c) 2005-2015 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.
(http://www.gnu.org/licenses/gpl-2.0.html) For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON
BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 3.58, RELEASE SOFTWARE (P)
          
C3850 uptime is 2 minutes
Uptime for this control processor is 5 minutes
System returned to ROM by reload
System image file is "flash:packages.conf"
Last reload reason: Reload Command


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.
          
License Level: Ipbase
License Type: Permanent
Next reload license Level: Ipbase

cisco WS-C3850-48P (MIPS) processor with 4194304K bytes of physical memory.
Processor board ID FOC21051234
1 Virtual Ethernet interface
104 Gigabit Ethernet interfaces
8 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
252000K bytes of Crash Files at crashinfo:.
1611414K bytes of Flash at flash:.
0K bytes of Dummy USB Flash at usbflash0:.
0K bytes of  at webui:.

Base Ethernet MAC Address          : cc:98:91:1e:51:00
Motherboard Assembly Number        : 73-15800-08
Motherboard Serial Number          : FOC21265678
Model Revision Number              : AB0
Motherboard Revision Number        : A0
Model Number                       : WS-C3850-48P
System Serial Number               : FOC21051234


Switch Ports Model              SW Version        SW Image              Mode   
------ ----- -----              ----------        ----------            ----   
*    1 56    WS-C3850-48P       03.06.07E         cat3k_caa-universalk9 INSTALL


Configuration register is 0x102


Issue a software clean command to remove unneeded package files.

C3850#software clean
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.07E.pkg
       cat3k_caa-infra.SPA.03.06.07E.pkg
       cat3k_caa-iosd-universalk9.SPA.152-2.E7.pkg
       cat3k_caa-platform.SPA.03.06.07E.pkg
       cat3k_caa-wcm.SPA.10.2.170.0.pkg
       packages.conf
     Committed files, will not delete:
       cat3k_caa-drivers.SPA.03.06.07E.pkg
[1]: Files that will be deleted:
    cat3k_caa-guestshell.16.06.02.SPA.pkg
    cat3k_caa-rpbase.16.06.02.SPA.pkg
    cat3k_caa-rpcore.16.06.02.SPA.pkg
    cat3k_caa-srdriver.16.06.02.SPA.pkg
    cat3k_caa-universalk9.SPA.03.06.07.E.152-2.E7.conf
    cat3k_caa-webui.16.06.02.SPA.pkg
    packages.conf.00-

[1]: Do you want to proceed with the deletion? [yes/no]: yes
[1]: Clean up completed