08-30-2023 02:33 AM
Hello,
I have a few C9200s and C9500 that I need to code upgrade. However, in this case, I want to load the code onto the device but not reload it....I will schedule a reload at a later date and want the code to automatically kick in once reloaded.
Can you advise how to perform the upgrade only after the device reloads?
Normally I would use a boot statement of the new code, but Im not sure if that still relevant
08-30-2023 02:44 AM
Ok so after some further digging, the below post seems to clarify. There are two upgrade modes for performing the upgrade, install mode and bundle mode.
If I go to install mode, it seems like I will need to manually force the reboot by issuing the command "install activate".
This doesnt really work for me as it I say, its manual. So in that case, I will need to use bundle mode, by adding the code version to the switch and then setting the boot variable.
Can anyone confirm my assumptions above please?
-------- Previous Post ------------------------------------
There are two "modes" for upgrading:
Bundle mode:
- delete unnecessary flash files (if apllicable) - delete bootflash: xxxx
- copy the new .bin file to every switch in the stack and set the boot variable to point to the new bin file, save and reload whole stack
-no boot system
-boot system bootflash:xxxx.bin
-write
Install mode:
You can perform this in s single command if you wish as already stated (install add file bootflash:xxx.bin activate commit) or you can do this step by step so then you have more control pver the upgrade as such if you have any issues with the remote upgrade and you are unable to reconnect to the switch stack the upgrade will rollback if you dont manually commit after upgrade.
Perform a cleanup of any old install files before you upgrade
- install remove inactive
Make sure boot variable is pointing to packages.conf
-no boot system
-boot system bootflash:packages.conf
-write
Copy the new .bin file onto the switch
- copy tftp://x.x.x.//xxxxxxxxx.bin bootflash:
expand the .bin file to extract the .pkg files (used to boot new software)
- install add file bootflash:xxx.bin
- show install summary
- show install inactive
- more packages.conf
activate new software < stack will reload)
- install activate
one reloaded and your happy with the upgrade commit the changes
- show install uncommitted
- install commit
--------------------------------------------------------
08-30-2023 09:56 PM
@lloydXmas wrote:
I want to load the code onto the device but not reload it....I will schedule a reload at a later date and want the code to automatically kick in once reloaded.
I am familiar with this because I have knocked up a process I call a "one-hit-wonder".
I use this process all the time to upgrade routers, 9500 (VSS and standalone) and 9800. So far, I have not "lost" any one of them. The process works.
DISCLAIMER:
One-Hit-Wonder is not recommended (nor endorsed) by Cisco/Cisco TAC. This process is my personal endeavor.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide