05-19-2023 10:59 PM
Hello Team,
I have done the IOS upgrade by using the below command in the Cisco WS-C3650-24PS platform.
#request platform software package install switch all file flash:cat3k_caa-universalk9.16.12.07.SPA.bin
The switch come up with the expected IOS version of 16.12.08
OLD : 16.12.05b
New : 16.12.08
Question: Post validation, I found the IOS still present on the flash and the new IOS reflecting on the down.
If any reload in the future,, which IOS will take ?
Solved! Go to Solution.
05-20-2023 05:53 AM - edited 05-20-2023 06:25 AM
Hello @Madhu ,
Please verify the current boot configuration with show boot command.
This command will display the boot variables and the order in which the IOS images are loaded. Look for the "boot system" lines in the output.
If the boot configuration is not explicitly set, the switch will automatically boot from the highest numbered IOS image in the flash. In your case, if the boot configuration is not modified, the switch will boot from the new IOS version 16.12.08 after a reload.
However, if you want to ensure that the switch always boots from the new IOS version, you can modify the boot configuration to explicitly specify the desired IOS image. Here's an example of how to do that:
#boot system switch all flash:<IMAGE.bin>
Modify<IMAGE.bin> with the actual filename of the new IOS image.
05-20-2023 06:09 AM
There's something very inconsistent about all the info you have provided!
- You say you wanted to upgrade to 16.12.8 but the command you say you used was using a 16.12.7 image!
- That "show ver" shows the switch running 16.12.8 but referring to a 16.12.5b conf file - there are some well know bugs with conf files not getting correctly updated with upgrade and this is already covered in the upgrade procedures - sometimes you need to copy and set the correct conf file manually. But at that point the switch appears to be running 16.12.8 - one way or another!
-The latest "sh ver" you provided actually shows the switch running 16.12.5b so there have clearly between changes between the first and second one!
I think start from scratch and follow the instructions carefully. Make sure you have the correct file(s). Refer to
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3650/software/release/16-12/configuration_guide/sys_mgmt/b_1612_sys_mgmt_3650_cg/upgrading_the_switch_software.html
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3650/software/release/16-12/release_notes/ol-16-12-3650.html#id_67613
05-19-2023 11:12 PM
- Check with command : # show boot
M.
05-19-2023 11:23 PM
05-19-2023 11:59 PM
you can clean old OS using below command and reload the device and check.
#
install remove inactive
do it on maintenance window.
05-20-2023 05:53 AM - edited 05-20-2023 06:25 AM
Hello @Madhu ,
Please verify the current boot configuration with show boot command.
This command will display the boot variables and the order in which the IOS images are loaded. Look for the "boot system" lines in the output.
If the boot configuration is not explicitly set, the switch will automatically boot from the highest numbered IOS image in the flash. In your case, if the boot configuration is not modified, the switch will boot from the new IOS version 16.12.08 after a reload.
However, if you want to ensure that the switch always boots from the new IOS version, you can modify the boot configuration to explicitly specify the desired IOS image. Here's an example of how to do that:
#boot system switch all flash:<IMAGE.bin>
Modify<IMAGE.bin> with the actual filename of the new IOS image.
05-20-2023 05:58 AM
Hi
This is confuse. You ran the command:
#request platform software package install switch all file flash:cat3k_caa-universalk9.16.12.07.SPA.bin
then, on the show version you see:
Then you attached another log with
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 28 WS-C3650-24PS 16.12.05b CAT3K_CAA-UNIVERSALK9 INSTALL
But the uptime is "MNL.T.F7.W.NTC2.AS.5 uptime is 1 year, 41 weeks, 5 days, 23 hours, 1 minute"
The TXT log you attached is pre-upgrade?
This switch is in Install mode so, you dont need to worry about the boot command. If you install using the request platform command and you got everything right on the logs, no error then you should boot with the right image.
05-20-2023 06:09 AM
There's something very inconsistent about all the info you have provided!
- You say you wanted to upgrade to 16.12.8 but the command you say you used was using a 16.12.7 image!
- That "show ver" shows the switch running 16.12.8 but referring to a 16.12.5b conf file - there are some well know bugs with conf files not getting correctly updated with upgrade and this is already covered in the upgrade procedures - sometimes you need to copy and set the correct conf file manually. But at that point the switch appears to be running 16.12.8 - one way or another!
-The latest "sh ver" you provided actually shows the switch running 16.12.5b so there have clearly between changes between the first and second one!
I think start from scratch and follow the instructions carefully. Make sure you have the correct file(s). Refer to
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3650/software/release/16-12/configuration_guide/sys_mgmt/b_1612_sys_mgmt_3650_cg/upgrading_the_switch_software.html
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3650/software/release/16-12/release_notes/ol-16-12-3650.html#id_67613
05-20-2023 06:43 AM
Based on your statement, image upgrade is done and the problem is you can see both the images (old and existing) in the flash.
The recommended way is to configure the new/upgraded image for the next boot and you can verify this with "show boot" command.
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