02-17-2014 06:35 AM - edited 03-04-2019 10:21 PM
I am trying to upgrade WS-C4507R+E with a new image cat4500e-universalk9.SPA.03.03.00.SG.151-1.SG.bin but every time I reboot the switch it still comes up with the old image cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin
switch1#sh bootflash:
-#- --length-- ---------date/time--------- path
1 112337548 May 14 2013 23:48:51 +00:00 cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin
2 115624136 Oct 30 2013 13:13:25 +00:00 cat4500e-universalk9.SPA.03.03.00.SG.151-1.SG.bin
PLease let me know if I am missing anything in configuring the correct image in the switch
I have put the below commands
boot-start-marker
boot system flash bootflash:cat4500e-universalk9.SPA.03.03.00.SG.151-1.SG.bin
boot system flash:cat4500e-universalk9.SPA.03.03.00.SG.151-1.SG.bin
boot-end-marker
!
02-17-2014 06:40 AM
This is the bootvar setup
switch1#sh bootvar
BOOT variable = bootflash:cat4500e-universalk9.SPA.03.03.00.SG.151-1.SG.bin,1;flash:cat4500e-universalk9.SPA.03.03.00.SG.151-1.SG.bin,12;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x2101
02-17-2014 06:52 AM
You need to change your configuration register ie.
0x2101 says to boot the first image found
0X2102 says to boot the image found in the boot variable
Jon
02-17-2014 06:54 AM
Do I have to change anything that is coming in the output of Show bootvar?
02-17-2014 06:59 AM
No, i think the issue is purely with your configuration register setting.
Jon
02-17-2014 07:07 AM
Thanks a lot, it worked but I want to know like in every 4506 R+E do we have to use conf-register as 0x2012 always`? Can you throw some more light in it.
02-17-2014 07:20 AM
It's up to you really.
Note that if you had actually erased the current image and just added the new one to flash then you would not need to have changed the configuration register as that would have been the only image and so it would have booted that one.
However most people, including me, don't do that just in case there is a problem with the new image. If you have multiple images in flash and you want to choose one that is not first in the list then you need to modify the configuration register and the boot variable to tell it to use that one.
When i was doing a lot of 6500 upgrades i would simply change the boot variable to include both images but make sure the image i wanted to boot was the first in the boot variable string. Also worth bearing in mind that sometimes you have an image in onboard flash and one on a compact flash card so again if you wanted to boot the compact flash image you would need to modify the boot variable.
It really comes down to what you want to do ie. now you have booted the correct image and verfied that it is working you could if you needed the space remove the old one and reset the configuration register back to what it was.
The advantage of using 0x2101 is that as long as there is an image in flash it will always be able to boot.
The advantage of using 0x2102 is you can have multiple images and choose which one you want to boot at anyone time, including when the image may be on a flash card.
Usually i used the boot variable to decide which image to boot and did not rely on the order in flash.
Jon
02-17-2014 07:25 AM
Thanks a lot for the detailed explanation. It really helped me a lot and now I can upgrade all the 24 4500 switches
02-17-2014 07:33 AM
No problem, glad to have helped.
Good luck with the upgrades
Jon
02-17-2014 08:10 AM
I also tried with deleting the old IOS image and keeping the config register as same and it worked too.
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