06-05-2012 10:35 AM - edited 03-07-2019 07:04 AM
hi all,
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=15.0(1r)SG5
SupportedFeatures=1
ConsecPostPassedCnt=2
DiagMonitorAction=Normal
CONFIG_FILE=bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bin
RET_2_RTS=03:00:52 MDT Tue Jun 5 2012
RET_2_RCALTS=1338886852
BootedFileName=bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bin
ConfigReg=0xe542
Need help thanks
mahesh
Solved! Go to Solution.
06-05-2012 10:41 AM
Hi,
When booting in ROMMON, do the following:
confreg 0x2102
dir bootflash:
Check the IOS files there and boot manually:
boot bootflash:
E.g.:
boot bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bin
When in IOS, check the boot string to point to correct file name:
show boot
show run | i boot
If it is incorrect, remove it and add a correct one:
conf t
no boot .....
boot ....
end
wr
Check again to make sure there are only correct entries now:
show boot
show run | i boot
Kind Regards,
Ivan
**Please grade this post if you find it useful.
06-05-2012 05:09 PM
Hi Mahesh,
Can you try using an SD card to copy the IOS into it? It's alot faster and less hassle.
06-05-2012 10:38 AM
Hi,
Here is IOS which i download to switch
rommon 7 >dir bootflash:
Date Time Attribute Size Name
========== ===== ========== ========== ================
2012/06/05 09:00 -rw-rw-rw- 47973 cat4500e-universalk9.SPA.03.02.04.S
G.150-2.SG4.bin
Total space = 808548 KB
Available = 811872 KB
06-05-2012 10:40 AM
mon 1 > on choosing a boot method, type 'confreg' command.
rommon 1 >boot bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bin
File has bad file magic number: 0x0. Is it a valid file?
boot: can not load "bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bi
n"
rommon 2 >
mon 1 > on choosing a boot method, type 'confreg' command.
rommon 1 >boot bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bin
File has bad file magic number: 0x0. Is it a valid file?
boot: can not load "bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bi
n"
rommon 2 >
06-05-2012 10:44 AM
Hi,
See ythe steps I posted below. I see you tried manual boot already and it reported "File has bad file magic number".
This error typically indicates the file is corrupted, I suggest to download it again from cisco.com and re-upload on the switch.
Kind Regards,
Ivan
**Please grade this post if you find it useful.
06-05-2012 11:57 AM
Hi Ivan,
tried to copy file from tftp
rommon 53 >boot tftp://169.254.215.131/cat4500e-universalk9.SPA.03.02.04.SG.150-
2.SG4.bin
Tftp Session details are ....
Filename : /cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bin
IP Address : 169.254.215.135
Loading from TftpServer: 169.254.215.131
Tftp session failed: File not found
06-05-2012 01:26 PM
Hi,
The FTP server should be accessible from the management port. Did you do a ping to confirm server is reachable?
ping <tftp_server_ip_address>
If it reachable, than check whether the file is located in the default FTP server directory as you are specifying in the ftp url string.
Please check if you followed all steps specified in the procedure (option 2) in this guide:
http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/release/note/OL_24727.html#wp289935
Kind Regards,
Ivan
**Please grade this post if you find it useful.
06-05-2012 01:30 PM
Hi,
It booted fine now
now this issue
Switch#copy tftp: bootflash:?
% Unrecognized command
Switch#copy tftp: bootflash:
Address or name of remote host [169.254.215.131]?
Source filename [cat4500e-universalk9.SPA.03.02.04.SG.150-2]?
Destination filename [cat4500e-universalk9.SPA.03.02.04.SG.150-2]?
Accessing tftp://169.254.215.131/cat4500e-universalk9.SPA.03.02.04.SG.150-2...
%Error opening tftp://169.254.215.131/cat4500e-universalk9.SPA.03.02.04.SG.150-2
(Socket error) Switch#copy tftp: bootflash:?
% Unrecognized command
Switch#copy tftp: bootflash:
Address or name of remote host [169.254.215.131]?
Source filename [cat4500e-universalk9.SPA.03.02.04.SG.150-2]?
Destination filename [cat4500e-universalk9.SPA.03.02.04.SG.150-2]?
Accessing tftp://169.254.215.131/cat4500e-universalk9.SPA.03.02.04.SG.150-2...
%Error opening tftp://169.254.215.131/cat4500e-universalk9.SPA.03.02.04.SG.150-2
(Socket error)
Thanks
mahesh
06-05-2012 01:44 PM
Do you have any IP configured on your switch? Can you ping the FTP server when booted in IOS?
Try the following:
1. Configure vlan 1 on switch and assign a port facing FTP server to that vlan.
2. Create IP on vlan in the same subnet as server.
3. Try to ping and if it does then you are all good.
4. Check that there is no password on FTP server.
5. Start download now.
06-05-2012 10:41 AM
Hi,
When booting in ROMMON, do the following:
confreg 0x2102
dir bootflash:
Check the IOS files there and boot manually:
boot bootflash:
E.g.:
boot bootflash:cat4500e-universalk9.SPA.03.02.04.SG.150-2.SG4.bin
When in IOS, check the boot string to point to correct file name:
show boot
show run | i boot
If it is incorrect, remove it and add a correct one:
conf t
no boot .....
boot ....
end
wr
Check again to make sure there are only correct entries now:
show boot
show run | i boot
Kind Regards,
Ivan
**Please grade this post if you find it useful.
06-05-2012 10:44 AM
Hi Ivan,
i tried see the posts
did not work
thanks
mahesh
06-05-2012 05:09 PM
Hi Mahesh,
Can you try using an SD card to copy the IOS into it? It's alot faster and less hassle.
06-05-2012 05:55 PM
Hi Ivan and leolaohoo,
Issue was that Management port on 4507 works only for ROM ON mode to boot pc from tftp.
When i try to run command copy tftp bootflash it did not worked.
Then i connected my pc to port on lince card 1 then copy tftp bootflash worked.
Thanks for you help
Mahesh
02-01-2018 04:31 AM
Mine is a 4503, Supervisor 6-E. Your answer was quite helpful guiding me to the solution the worked for me when updating my other switches - deleting prior files on bootflash: (images, vlan.dat and config files).
I got the following when I just re-pointed the "boot system flash..."only:
Autobooting using the first file from bootflash.....
File has bad file magic number: 0x0. Is it a valid file?
boot: can not load "bootflash:"
Autoboot using first file from bootflash failed.
rommon 1 >
Here are the steps I applied after my first experience:
rommon 1 >boot bootflash:........................... (newly uploaded image name.bin)
Then from IOS:
show bootflash:
delete bootflash:.........................(old image name)
Do this for other files not required but seen on bootflash.
show run | i boot
delete boot system flash bootflash:....................... (old image name)
conf t
boot system flash bootflash:............................(new image name)
end
That resulted in a normal reboot with the new image for me! Thanks a lot for your post.
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