6

Is there a way to upgrade a Cisco Catalyst 9300 switch to a new software version without the switch automatically reloading as part of the initial install process? With other switches (eg Cisco Catalyst 3850) I could do the software install and then it would prompt you with something like 'Software install complete. Do you want to reload now?'. You could hit 'n' and reload the switch at a later time eg out of hours. But when I recently did a software upgrade for our newer Catalyst 9300 switches from 16.12.04 to 17.03.04 the switch reloaded automatically straight away (luckily it was not a live switch!).

During the install there is a warning that comes up saying

This operation may require a reload of the system. Do you want to proceed? [y/n]

If you hit 'y' then it completes the install and reboots immediately afterwards. There is no further prompt to reload, below is the end of the process.

16128+0 records in
16128+0 records out
8257536 bytes (8.3 MB, 7.9 MiB) copied, 8.50053 s, 971 kB/s
SUCCESS: Upgrade_Service finished
Install will reload the system now!
SUCCESS: install_add_activate_commit  Fri Dec 10 11:08:36 GMT 2021

The first time I tried installing I hit 'n' but that just seemed to cancel the install.

Looking at the Cisco doc for 9300 software upgrades I thought I had found the answer with the command

install add file bootflash:cat9k_iosxe.x.x.x.SPA.bin activate commit prompt-level none

I thought there would be an option to choose a value other than none, but there isnt.

Is there a way around this?

Jesse P.
  • 4,690
  • 1
  • 11
  • 14
The Footsie
  • 433
  • 4
  • 11

1 Answers1

5

There is no way to postpone (or avoid altogether) the reload while updating the switches. As mentioned in a comment, as somewhat of a side note, some models support ISSU which, when used with devices containing dual supervisors, allows you to perform updates without reloading the device. Catalyst 9200 and 9300 models do not support ISSU. The 9300 models do support reloadfast, to decrease the amount of time needed for a reboot but that comes with its own risks, in that all stack members will reload at the same time and could potentially cause problems depending on which one becomes the stack master if you haven’t properly set priorities beforehand.

If reloading immediately after the update process is completed is an issue (for whatever reason), your only option is to put off updating until a date and time when you can reload with minimal interruption.

As I mentioned in the comments, performing the entire process automatically via EEM (Embedded Event Manager) is another option, so that upgrades can be done after hours without user interaction. Here is an example of an upgrade script and link to other example scripts.

event manager applet UPGRADE authorization bypass
event none maxrun 300
action 0001 cli command "enable"
action 0002 cli command "term length 0"
action 0020 cli command "install add file flash:cat9k_iosxe.16.06.02.SPA.bin activate commit" pattern "y\/n"
action 0030 cli command "y" pattern "y\/n"
action 0040 syslog msg  "Reloading device to upgrade code"
action 0050 cli command "y"

You can refer to this link (which you appear to have already partially read) for further details and procedures of general upgrade processes on Catalyst 9000-series switches.

Jesse P.
  • 4,690
  • 1
  • 11
  • 14