cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
15569
Views
5
Helpful
28
Replies

Show Version command displays old IOS on Cisco 4948?

cdalask
Level 1
Level 1

Recently upgraded our Cisco 4948 with no apparently problems.  The switch appears to be opperating fine.  However when you enter "show version" it still shows the old IOS.  When you enter "show config" or "show running-config" it shows the upgraded version.  How do we correct the "show version" command to display the current IOS?

Thanks,

1 Accepted Solution

Accepted Solutions

cdalask wrote:

I noticed you entered the word bootflash:/ with a slash before the filename.  This could be where I'm missing the boat because it doesn't show "bootflash" when I use the auto complete feature.  I have been entering #boot system flash cat4500-ipbasek9-mz.122.53.SG1.bin and I haven't been entering a forward slash! I will give it another try once you confirm my reply.

Thanks,

~c

You shouldn't need the / but from memory i don't think it matters either way. Don't use the auto complete feature at the moment, just type it in manually and make sure you save it to memory. You just need to confirm it is in the running config with bootflash in the string before you reload the switch.

Jon

View solution in original post

28 Replies 28

Reza Sharifi
Hall of Fame
Hall of Fame

Since you loaded a new image on your box, you now have to images on flash. When you boot you router is will boot the first IOS image which is your old one.  You need to point your router to boot from the new IOS. the command is:

boot system flash

Then boot you router, it should now boot from the new image.

Now if every thing is working fine you can delete the old IOS.

HTH

Reza

Thanks for the quick reply.  I did run the boot system flash command and copied it to config.  I still see the following when I run the below commands:

sh bootvar = cat4500-ipbasek9-mz.122-53.SG1.bin,1;

sh config boot system flash cat4500-ipbasek9-mz.122-53.SG1.bin

However when I run Show Version I receive the old IOS

sh ver System Image File is "bootflash:cat4500-ipbase-mz.122-31.SGA4.bin

Could it be that the sh ver command is listing the old IOS because I haven't yet deleted it from the bootflash directory?

Thanks ahead!

Can you post running config.

Also are you sure the switch is running the new IOS ?

Jon

I do not recommend you delete the old IOS yet.

You want to make sure you have the new IOS on your flash and every thing is working before you delete the old image, if not you can run to a problem of not having any good IOS installed and that can cause an outage.

HTH

Reza

Jon,

Below sh running-config, dir bootflash and sh version.  You will see the new IOS in sh run and the old in sh ver.  The sh run output is obviously edited down. Thanks for your help!

ABC-Switch#sh running-config                           
Building configuration...                       

Current configuration : 7114 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service compress-config
!
hostname ABC-Switch
!
boot-start-marker
boot system flash cat4500-ipbasek9-mz.122-53.SG1.bin
boot-end-marker
!
enable secret 5 $1$CMK6$0qoYN2TJPe0wzBPUfFCLe0
!
no aaa new-model
ip subnet-zero
ip dhcp excluded-address 172.x.x.x x.x.x.x
ip dhcp excluded-address 172.x.x.x x.x.x.x
ip dhcp excluded-address 192.x.x.x x.x.x.x
--More--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC-Switch#dir bootflash:
Directory of bootflash:/

    1  -rwx    12204260  Sep 22 2008 13:52:18 +00:00  cat4500-ipbase-mz.122-31.S
GA4.bin
    3  -rwx    16170184  Nov 23 2009 13:40:07 +00:00  cat4500-ipbasek9-mz.122-53
.SG1.bin

60817408 bytes total (16272396 bytes free)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


ABC-Switch#sh version                    
Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-IPBASE-M), Version
12.2(31)SGA4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 25-Oct-07 16:15 by hqluong
Image text-base: 0x10000000, data-base: 0x114AE964

ROM: 12.2(31r)SGA1
Dagobah Revision 226, Swamp Revision 5

CGS-Switch uptime is 1 hour, 33 minutes
System returned to ROM by power-on
System image file is "bootflash:cat4500-ipbase-mz.122-31.SGA4.bin"

cisco WS-C4948 (MPC8245) processor (revision 0) with 262144K bytes of memory.
Processor board ID FOX1228GMDE
MPC8245 CPU at 266Mhz, Fixed Module
Last reset from PowerUp
4 Virtual Ethernet interfaces
48 Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.

Configuration register is 0x2101

Thanks,

Okay, you are actually still running the old IOS and it is because your config register is set to 0x2101 which tells the switch to load the first IOS it finds in flash.

So you need to change your config register to 0x2102 and then reload.

Edit - just for your info. "sh version" shows the actual IOS running on your switch/router. "sh run" simply shows the config the switch/router is working with but it won't tell you which IOS is actually in use.

Jon

I changed the config register to 0x2102 and rebooted.  It booted to rommon>   I managed to reload the original config and the switch is up but the config registry is back to 0x2101 and the sh ver still shows the old IOS.  I know I am doing something wrong...just haven't figured it out yet.  Any idea what rookie mistake I made?

Thanks...

Your boot statement did not point to the bootflash which contain the file cat4500-ipbasek9-mz.122-53.SG1.bin

Try this along with the config register of 0x2102

no boot system flash cat4500-ipbasek9-mz.122-53.SG1.bin

boot system flash bootflash:cat4500-ipbasek9-mz.122-53.SG1.bin

wri mem

Use show boot to verify the boot statement and reload.

Regards,

jerry

Sorry it took so long to reply.  I have a couple more questons before I reload.  I still am not convinced I am entering the boot/no boot command correctly.  I have copied a couple of commands below.  When I enter the no boot system flash command my option is to enter the WORD at that point...see below:

~~~~~~~~~~~~~~~~~~~~~~~~~

ABC-Switch(config)#no boot
ABC-Switch(config)#no boot sys
ABC-Switch(config)#no boot system fl
ABC-Switch(config)#no boot system flash ?
  WORD  System image filename
 

~~~~~~~~~~~~~~~~~~~~~~~~~

So the correct command for me to remove the current boot statement would be "no boot system flash cat4500-ipbasek9-mz.122-53.SG1.bin" ?

I want to be certain I don't have to also enter the word bootflash prior to the file name!

So I guess my question is do I enter "bootflash" in front of the file name when using the "no boot system flash" and the "boot system flash" commands?

Lastly, I don't have an option to enter the show boot command, the command line wants show bootflash:  Below is what I receive after doing the add remove steps.

~~~~~~~~~~~~~~~~~~~~~~~~~

ABC-Switch#sh bootfl
ABC-Switch#sh bootflash:
-#- ED ----type---- --crc--- -seek-- nlen -length- ---------date/time--------- n
ame
1   .. image        2C558EEC  BE3964   33 12204260 Sep 22 2008 13:52:18 +00:00 c
at4500-ipbase-mz.122-31.SGA4.bin
2   .D image        18E0CC7D 1B4F6AC   34 16170184 Nov 23 2009 13:31:09 +00:00 c
at4500-ipbasek9-mz.122-53.SG1.bin
3   .. image        18E0CC7D 2ABB3F4   34 16170184 Nov 23 2009 13:40:07 +00:00 c
at4500-ipbasek9-mz.122-53.SG1.bin

16272396 bytes available (44545012 bytes used)
ABC-Switch#

I really would like to see the actual file the system will boot from before reloading.  Number 1 above is obviously the old IOS.

Thanks,

cdalask wrote:

Sorry it took so long to reply.  I have a couple more questons before I reload.  I still am not convinced I am entering the boot/no boot command correctly.  I have copied a couple of commands below.  When I enter the no boot system flash command my option is to enter the WORD at that point...see below:

~~~~~~~~~~~~~~~~~~~~~~~~~

ABC-Switch(config)#no boot
ABC-Switch(config)#no boot sys
ABC-Switch(config)#no boot system fl
ABC-Switch(config)#no boot system flash ?
  WORD  System image filename
 

~~~~~~~~~~~~~~~~~~~~~~~~~

So the correct command for me to remove the current boot statement would be "no boot system flash cat4500-ipbasek9-mz.122-53.SG1.bin" ?

I want to be certain I don't have to also enter the word bootflash prior to the file name!

So I guess my question is do I enter "bootflash" in front of the file name when using the "no boot system flash" and the "boot system flash" commands?

Lastly, I don't have an option to enter the show boot command, the command line wants show bootflash:  Below is what I receive after doing the add remove steps.

~~~~~~~~~~~~~~~~~~~~~~~~~

ABC-Switch#sh bootfl
ABC-Switch#sh bootflash:
-#- ED ----type---- --crc--- -seek-- nlen -length- ---------date/time--------- n
ame
1   .. image        2C558EEC  BE3964   33 12204260 Sep 22 2008 13:52:18 +00:00 c
at4500-ipbase-mz.122-31.SGA4.bin
2   .D image        18E0CC7D 1B4F6AC   34 16170184 Nov 23 2009 13:31:09 +00:00 c
at4500-ipbasek9-mz.122-53.SG1.bin
3   .. image        18E0CC7D 2ABB3F4   34 16170184 Nov 23 2009 13:40:07 +00:00 c
at4500-ipbasek9-mz.122-53.SG1.bin

16272396 bytes available (44545012 bytes used)
ABC-Switch#

I really would like to see the actual file the system will boot from before reloading.  Number 1 above is obviously the old IOS.

Thanks,

You need to do the following -

4500(config)# no boot system flash cat4500-ipbasek9-mz.122-53SG1.bin

4500(config)# wr mem

then do a "sh run" and make sure there are no "boot system ...." commands in the running-config. If there are remove them.

Then

4500(config)# boot system flash bootflash:cat4500-ipbasek9-mz.122-53SG1.bin

4500(config)# wr mem

then do "sh run" and make sure you see the "boot system ..." command that you have just typed in.

Also make sure that you have typed the filename in correctly, double check to be sure.

Then reload the switch.

Jon

Agree with Jon.

I'll give it a try.  I should also change the registry to 0x2102 before reloading...correct?

Thank you

Yes, the config reg should be at 0x2102.

Regards,

jerry

Jon,

Followed your instructions to the letter.  The Catalyst still boots to >rommon.  I am forced to enter "boot" at the rommon prompt in order to get the switch to boot from the old IOS.  I have the registry at 0x2102 now as well.  I can copy an paste any conf you might want to look at.  Your help is greatly appreciated.

~c

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco