Cisco 4500 switch reboot loop

Answered Question
Jan 25th, 2010

Hi,

  When ever I power up the 4500, it goes to ROMMON and sits there until I manually type in "boot" and hit enter. After the manual boot, everything seems to work fine. This switch hasn't been used for awhile so I am not sure what/who caused this to happen. Since it does boot, I know the image is there and OK. I have tried running boot system flash cat4500-ipbase-mz.122-31.SGA6.bin command multiple times but it keeps booting into ROMMON mode.

Any help will be appreciated.

Thanks in advance.

*** Sho Vers:

Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-IPBASE-M), Version 12.2(31)SGA6, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Mon 31-Mar-08 21:23 by chendah
Image text-base: 0x10000000, data-base: 0x114B115C

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

Switch uptime is 0 minutes
Uptime for this control processor is 1 minute
System returned to ROM by power-on
System image file is "bootflash:cat4500-ipbase-mz.122-31.SGA6.bin"

cisco WS-C4507R-E (MPC8245) processor (revision 14) with 524288K bytes of memory.
Processor board ID FOX1247GU5W
MPC8245 CPU at 333Mhz, Supervisor IV
Last reset from PowerUp
1 Virtual Ethernet interface
44 Gigabit Ethernet interfaces
403K bytes of non-volatile configuration memory.
Configuration register is 0x2102


*** BootFlash:

-#- ED ----type---- --crc--- -seek-- nlen -length- ---------date/time--------- name
1   .. image        03EDCAC2  C25744   33 12211908 Nov 29 2008 11:45:41 +00:00 cat4500-ipbase-mz.122-31.SGA6.bin

49129660 bytes available (12212036 bytes used)

-------- F I L E   S Y S T E M   S T A T U S --------
  Device Number = 0
DEVICE INFO BLOCK: bootflash
  Magic Number          = 6887635   File System Vers = 10005    (1.5)
  Length                = 3C00000   Sector Size      = 80000  
  Programming Algorithm = 6         Erased State     = FFFFFFFF
  File System Offset    = 80000     Length = 3A80000
  MONLIB Offset         = 100       Length = 2AE60  
  Bad Sector Map Offset = 7FFF1     Length = F      
  Squeeze Log Offset    = 3B00000   Length = 80000  
  Squeeze Buffer Offset = 3B80000   Length = 80000  
  MONLIB Version        = 0        (0.0)
  Num Spare Sectors     = 0
    Spares:
STATUS INFO:
  Writable
  NO File Open for Write
  Complete Stats
  No Unrecovered Errors
  No Squeeze in progress
USAGE INFO:
--More--                             Bytes Used     = BA5744  Bytes Available = 2EDA8BC
  Bad Sectors    = 0       Spared Sectors  = 0
  OK Files       = 1       Bytes = BA56C4
  Deleted Files  = 0       Bytes = 0    
  Files w/Errors = 0       Bytes = 0

I have this problem too.
0 votes
Correct Answer by Jon Marshall about 6 years 10 months ago

You need to use "erase" rather than "delete" ie. "erase cat4000_flash:vlan.dat

Jon

Correct Answer by sachinraja about 6 years 10 months ago

Hi Sudip

Can you remove these commands:

boot system flash
boot system flash:cat4500-ipbase-mz.122-31.SGA6.bin

and just have one command with booting the sytem from bootflash ?

Raj

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
sachinraja Mon, 01/25/2010 - 09:13

Can you send us the boot info ? why does it go to ROMMON ? are there any errors that you get when the switch boots ?

if you can boot the switch manually with the boot command, your file system looks good..

Raj

sudip.acharya1 Mon, 01/25/2010 - 09:37

No, I do not see errors on the screen duroing the booting.

Here is what i see while it boots.

Proceed with reload? [confirm]

00:02:26: %SYS-5-RELOAD: Reload requested by console. Reload reason: Reload command


**********************************************************
*                                                        *
* Welcome to Rom Monitor for      WS-X4515 System.       *
* Copyright (c) 2003-2007 by Cisco Systems, Inc.         *
* All rights reserved.                                   *
*                                                        *
**********************************************************

Rom Monitor Program Version 12.2(31r)SGA1
Supervisor: WS-X4515  Chassis: WS-C4507R-E
Hardware Revisions - Board: 2.14 CPLD: 32 Dagobah: 226

MAC Address  : 00-1d-a2-5c-a7-45
Ip Address   : Not set.
Netmask      : Not set.
Gateway      : Not set.
TftpServer   : Not set.
Main Memory  : 512 MBytes

***** The system will autoboot in 5 seconds *****


Type control-C to prevent autobooting.
. . . . .

******** The system will autoboot now ********


config-register = 0x2102
BOOTLDR is set but will not be loaded bacause the
current BOOT string is not a network file.
Autobooting using BOOT variable specified file.....

Current BOOT file is --- flash:cat4500-ipbase-mz.122-31.SGA6.bin
Invalid filename flash:cat4500-ipbase-mz.122-31.SGA6.bin. It must begin with device name.
Type 'boot -help' for details.


The switch will automatically reboot now...
rommon 1 >


**********************************************************
*                                                        *
* Welcome to Rom Monitor for      WS-X4515 System.       *
* Copyright (c) 2003-2007 by Cisco Systems, Inc.         *
* All rights reserved.                                   *
*                                                        *
**********************************************************

Rom Monitor Program Version 12.2(31r)SGA1
Supervisor: WS-X4515  Chassis: WS-C4507R-E
Hardware Revisions - Board: 2.14 CPLD: 32 Dagobah: 226

MAC Address  : 00-1d-a2-5c-a7-45
Ip Address   : Not set.
Netmask      : Not set.
Gateway      : Not set.
TftpServer   : Not set.
Main Memory  : 512 MBytes

***** The system will autoboot in 5 seconds *****


Type control-C to prevent autobooting.
. . . . .

******** The system will autoboot now ********


config-register = 0x2102
BOOTLDR is set but will not be loaded bacause the
current BOOT string is not a network file.
Autobooting using BOOT variable specified file.....

Current BOOT file is --- flash:cat4500-ipbase-mz.122-31.SGA6.bin
Invalid filename flash:cat4500-ipbase-mz.122-31.SGA6.bin. It must begin with device name.
Type 'boot -help' for details.


The switch will automatically reboot now...
rommon 1 >

****** this is when i enter "boot"

#################
              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706

Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-IPBASE-M), Version 12.2(31)SGA6, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Mon 31-Mar-08 21:23 by chendah
Image text-base: 0x10000000, data-base: 0x114B115C

Testing packet buffer memory: 00000      000000      000512      001024      001536      002048      002560      003072      003584      004096      004608      005120      005632      006144      006656      007168      007680      008192      008704      009216      009728      010240      010752      011264      011776      012288      012800      013312      013824      014336      014848      015360      015872      016384      016896      017408      017920      018432      018944      019456      019968      020480      020992      021504      022016      022528      023040      023552      024064      024576      025088      025600      026112      026624      027136      027648      028160      028672      029184      029696      030208      030720      031232      031744      032256      032768      033280      033792      034304      034816      035328      035840      036352      036864      037376      037888      038400      038912      039424      039936      040448      040960      041472      041984      042496      043008      043520      044032      044544      045056      045568      046080      046592      047104      047616      048128      048640      049152      049664      050176      050688      051200      051712      052224      052736      053248      053760      054272      054784      055296      055808      056320      056832      057344      057856      058368      058880      059392      059904      060416      060928      061440      061952      062464      062976      063488      064000      064512      065024      065536..done
All packet buffers passed.
cisco WS-C4507R-E (MPC8245) processor (revision 14) with 524288K bytes of memory.
Processor board ID FOX1247GU5W
MPC8245 CPU at 333Mhz, Supervisor IV
Last reset from PowerUp
1 Virtual Ethernet interface
44 Gigabit Ethernet interfaces
403K bytes of non-volatile configuration memory.


Press RETURN to get started!

Thanks.

Jon Marshall Mon, 01/25/2010 - 09:42

Current BOOT file is --- flash:cat4500-ipbase-mz.122-31.SGA6.bin
Invalid filename flash:cat4500-ipbase-mz.122-31.SGA6.bin. It must begin with device name
.

It cannot find the file you specified for it to use in bootup and therefore it goes to ROMMON.

Where is the image actually stored ?

From your switch can you

1) post the current boot system command ie."sh run | include boot system"

2) post the output of "dir /all" from the switch.

Jon

sudip.acharya1 Mon, 01/25/2010 - 14:35

Here you go.

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

sh run | include boot system
boot system flash:cat4500-ipbase-mz.122-31.SGA6.bin
boot system flash
Switch#dir /a'   ll
Directory of bootflash:/

    1  -rwx    12211908  Nov 29 2008 11:45:41 +00:00  cat4500-ipbase-mz.122-31.SGA6.bin

61341696 bytes total (49129660 bytes free)
Switch#
sachinraja Mon, 01/25/2010 - 15:04

Hello Sudip

If i see the configs right:

sh run | include boot system
boot system flash:cat4500-ipbase-mz.122-31.SGA6.bin

You have boot system flash:xxxxxx

but your image is in bootflash.. so you need to do a boot system flash bootflash: and then your image name.. DId you try that ? Did it work ? I went through bug list and did not find any specific bugs realted to this IOS.. is this switch on support contract ?

Raj

sudip.acharya1 Mon, 01/25/2010 - 15:50

Hi,

  I tried that but no luck. Here is some more info that i get when i reboot.


***** The system will autoboot in 5 seconds *****


Type control-C to prevent autobooting.
. . . . .

******** The system will autoboot now ********


config-register = 0x2102
BOOTLDR is set but will not be loaded bacause the
current BOOT string is not a network file.
Autobooting using BOOT variable specified file.....

Could not find a valid file in BOOT environment variable.
BOOT variable can be set from IOS. To find currently set
Rom Monitor variables, please type 'set' command.

For help on choosing a boot method,  type 'confreg' command.
rommon 1 >set
PS1=rommon ! >
RommonVer=12.2(31r)SGA1
BSI=0
PV=
SV=
IS=0
DiagMonitorAction=Normal
ConfigReg=0x2102
BOOTLDR=bootflash:cat4500-ipbase-mz.122-31.SGA6.bin
ConsecPostPassedCnt=20
RANDOM_NUM=881862228
BOOT=,1;bootflash:cat4500-ipbase-mz.122-31.SGA6.bin,1;flash:cat4500-ipbase-mz.122-31.SGA6.bin,12;
RET_2_RTS=15:34:50 UTC Mon Jan 25 2010
RET_2_RCALTS=1264433690
bootedfilename=cat4500-ipbase-mz.122-31.SGA6.bin
rommon 2 >

sachinraja Tue, 01/26/2010 - 06:45

Hi Sudip

Can you post the output suggested by Chris ? and also "show bootvar" ? This URL gives you more info on the bootldr commands:

http://www.ciscosystems.com/en/US/docs/ios/12_0/configfun/configuration/guide/fcreboot.html#wp4009

Are there any commands to boot the router from network ? "boot filename [ip-address] ? as seen in the flowchart given in the URL above:

the router would first look at boot commands , and then look on the flash/bootflash for valid image (config reg 2102), and then look at network (netboot) then boots in rommon ! we need to see why it is skipping the first step..

Raj

sachinraja Mon, 01/25/2010 - 09:50

Jon & chris are right on this  ...

Make sure you have the right boot-system commands configured, or if it is only one IOS which is on the bootflash, you can remove the boot-system commands to make sure it boots the ONLY IOS on the bootflash.. do a "no boot-system bootflash: xxxx " to remove this.

Hope this helps..

Raj

chris.macleod Mon, 01/25/2010 - 09:45

Hi,

The boot system statement should be

boot system flash bootflash:cat4500-ipbase-mz.122-31.SGA6.bin

Chris

chris.macleod Mon, 01/25/2010 - 22:11

Can you post the new sh run | include boot please

On 25 Jan 2010, at 22:36, "sudip.acharya1"

sudip.acharya1 Tue, 01/26/2010 - 08:32

Here you go.

Switch#sho run | include boot
boot-start-marker
boot system flash
boot system flash bootflash:cat4500-ipbase-mz.122-31.SGA6.bin
boot system flash:cat4500-ipbase-mz.122-31.SGA6.bin
boot bootldr bootflash:cat4500-ipbase-mz.122-31.SGA6.bin
boot-end-marker

I also ran sho bootvar and got the output below. I noticed the Config_File variable is missing. Is that ok?

sh bootvar
BOOT variable = ,1;bootflash:cat4500-ipbase-mz.122-31.SGA6.bin,1;flash:cat4500-ipbase-mz.122-31.SGA6.bin,12;
CONFIG_FILE variable does not exist
BOOTLDR variable = bootflash:cat4500-ipbase-mz.122-31.SGA6.bin
Configuration register is 0x2102

sudip.acharya1 Tue, 01/26/2010 - 08:34

Variable from ROMMON


rommon 8 >set
PS1=rommon ! >
RommonVer=12.2(31r)SGA1
BSI=0
PV=
SV=
IS=0
DiagMonitorAction=Normal
ConfigReg=0x2102
BOOTLDR=bootflash:cat4500-ipbase-mz.122-31.SGA6.bin
BOOT=,1;bootflash:cat4500-ipbase-mz.122-31.SGA6.bin,1;flash:cat4500-ipbase-mz.122-31.SGA6.bin,12;
ConsecPostPassedCnt=21
RANDOM_NUM=682707792
RET_2_RTS=08:17:26 UTC Tue Jan 26 2010
RET_2_RCALTS=1264493846
BootedFileName=?

Correct Answer
sachinraja Tue, 01/26/2010 - 08:36

Hi Sudip

Can you remove these commands:

boot system flash
boot system flash:cat4500-ipbase-mz.122-31.SGA6.bin

and just have one command with booting the sytem from bootflash ?

Raj

sudip.acharya1 Tue, 01/26/2010 - 10:05

Thanks Raj. That fixed it.

Do you happen to know what file i need to delete to remove the vlans that are on there right now?

sudip.acharya1 Tue, 01/26/2010 - 10:14

Chris,

  I thought it was vlan.dat too but the system cant find it when i try to delete it.

I am not sure where else it would keep it.

Jon Marshall Tue, 01/26/2010 - 10:18

sudip.acharya1 wrote:

Chris,

  I thought it was vlan.dat too but the system cant find it when i try to delete it.

I am not sure where else it would keep it.

Do a "dir /all" on the switch.

Jon

sachinraja Tue, 01/26/2010 - 10:14

Do you want to remove all VLANs and erase all configs ? as chris suggested, u need to look at vlan.dat file stored in flash/bootflash..

sudip.acharya1 Tue, 01/26/2010 - 10:26

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.01.26 13:22:09 =~=~=~=~=~=~=~=~=~=~=~=

Switch#dir /all
Directory of bootflash:/

    1  -rwx    12211908  Nov 29 2008 11:45:41 +00:00  cat4500-ipbase-mz.122-31.SGA6.bin

61341696 bytes total (49129660 bytes free)
Switch#

chris.macleod Tue, 01/26/2010 - 10:31

It's in

Cat4000_flash

So del cat4000_flash:vlan.dat

On 26 Jan 2010, at 18:27, "sudip.acharya1"

Jon Marshall Tue, 01/26/2010 - 10:32

sudip.acharya1 wrote:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.01.26 13:22:09 =~=~=~=~=~=~=~=~=~=~=~=

Switch#dir /all
Directory of bootflash:/

    1  -rwx    12211908  Nov 29 2008 11:45:41 +00:00  cat4500-ipbase-mz.122-31.SGA6.bin

61341696 bytes total (49129660 bytes free)
Switch#

Okay, that didn't work

vlan.dat on 4500 is stored in cat4000_flash: so do a "dir cat4000_flash:"  to check it is there and then delete it.

Jon

sudip.acharya1 Tue, 01/26/2010 - 10:35

Hi,

   Yes the vlan.dat file is in cat4000_flash but permisson is denied when I try to delete.

Correct Answer
Jon Marshall Tue, 01/26/2010 - 10:39

You need to use "erase" rather than "delete" ie. "erase cat4000_flash:vlan.dat

Jon

sachinraja Tue, 01/26/2010 - 10:40

Sudip

you can probably try erasing cat4000_flash, since that is the only file there.. check if you have any more files before erasing..

erase cat4000_flash

will remove your vlan.dat file

Raj

Actions

This Discussion