Home > Archive > CCNP > April 2002 > Bad File Magic!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Bad File Magic!
Cobby

2002-04-07, 12:47 pm

My company recently bought three used routers from another ISP. They all are 26** series routers with T-1/CSU/DSU wics.
One does not boot at all and has the output "bad file magic number" and the others has username and password prompts at the console.
My question is this, if I reset the passwords by standard means of forcing the enable password as outlined at cisco.com will this disable the console prompt too?

The reason I mention the non-bootable unit is that my boss in his infinite wisdom attempted to perform a password reset and after config'ing the reg caused the router to bonk and display this eror message. He thinks it is a security feature, I think he fluked up and reloaded with a bad reg value.

On monday I will tackle the other two and I thought I would ask the knowledge base here because maybe someone has seen this before.

Thanks
Yankee

2002-04-07, 3:20 pm

You're right. It ain't a security function and he did something wrong. Not sure what he did from your info but you'll have to break into it and at bare minimum clear the start config. Worst case would be replacing the IOS in flash.

Yankee
web

2002-04-07, 3:43 pm

NO OFFENSE
I s that a question from a CCNP???
Again NO OFFENSE
chodan

2002-04-07, 3:51 pm

you should be able to do a password recovery on all three.
You should be able to still get in via a "break" sequence.

Your configuration register should be 0x2102

for more specifics
http://www.cisco.com/warp/public/474/pswdrec_2600.shtml
Cobby

2002-04-07, 6:03 pm

Hey web,
Have you seen that SPECIFIC error?
"bad file magic number"
I have not even seen this equipment yet I just recieved an email describing the symptoms and claiming that there is some sort of security voodoo at work.
Usually bad reg values lead to the IOS not loading.
The claim is that the login appears and then the screen clears and displays the error.

CCNP or not I have never seen that specific error. Have you?
Its barely mentioned on the Cisco site.

No offense taken, should there be?
Maybe I missed something.
Yeti-GBR1

2002-04-07, 6:38 pm

I got this self same error when trying to upgrade a 2620 from 12.0(16) to 12.2(6a) turned out it was a duff IOS copy, I changed the copy of the upload and it sorted the problem. And yes there is next to naff all about this on the Cisco website, I found out by Trial and Error after getting no where with Cisco.

Ahhh babtism by fire ...it's the only way to learn
Cobby

2002-04-07, 7:07 pm

Thanks Yeti,
I know how to plan for Monday anyhow.
Peace,
web

2002-04-07, 7:45 pm

The router is loaded with a different model IOS image (one of the causes of this issue), replace the image with the correct one and you should be fine. Please note, that might not work, if that the case there is another procedure to correct this. Come back here or email me and I ll be glad to let you know how to do it.
"CCNP or not I have never seen that specific error. Have you?"
Yes, in my home lab. BUT that is not the issue because NO ONE will know ALL the error mesages for a particular environment (even the manufacturers) the issue here is when you are faced with an issue how do you "search or approach the issue"?, I am sorry to say I didnt see that in your post. Good luck on Monday and thank you for not taking offense from my previous post.
Cobby

2002-04-08, 5:58 pm

I will start by saying I am never offended by any information or question. In the IT biz you must have thick skin as you can never know everything. (but we try)


The biggest and the best get hacked over and over again due to their "we know it all" attitude.
So CCNP or CCIE there will be times you see new stuff. (at least I hope)
I do not think any individual certified or not should be worried to ask any question at any level.

I think that is what forums are for.
Shared Knowledge!

The reason for this router response to a simple password recovery was this.....

The routers were set up to use AAA and that's why they had a username prompt, not a p/w prompt. But also they had two images stored in NVRAM. One named startup-config that is totally corrupt. (intentionally) and one named 2828281010-config that is the correct image. When resetting the password one may set their password and load the start up file and guess what? Bad File Magic.

And bad indeed. The config that I extracted when I figured all this out is availible for view at http://www.imediaconsultants.com/co...fig_example.txt

This shows how a simple password reset can be more than just that.
Their config when loaded used the server for verification and made it impossible to view config info or enter simple commands.
The error output is:
MR-I*********#copy startup-config tftp
Command authorization failed.

MR-I********#
*Feb 28 16:08:12 PST: %AAAA-3-INVSTATE: unknown AUTHOR/CMD: Internal state is in
valid: astruct 0x818D4630 ustruct 0x0
-Traceback= 80211E20 80211CB8 80250204 802510D4 8025D29C 802CE450

Author Unknown! No Kidding.

This goes with the theory,

You will never be as rich as you want or as smart as you think,

and yes that statement came from a CCNP.

Thanks all.
Talk at ya soon.
Cobby

2002-04-08, 6:03 pm

In all fairness I should not rag on him.
But my boss not too long ago made a cross over cable crossing both ends and could not see why it didn't work.

He believed the routers were truly cursed with bad magic!

This stuff keeps me entertained and employed.

Later
web

2002-04-08, 11:01 pm

I didn't want to go more on this but when you say
"My question is this, if I reset the passwords by standard means of forcing the enable password as outlined at cisco.com will this disable the console prompt too?
and post this
"I do not think any individual certified or not should be worried to ask any question at any level . I think that is what forums are for. ,
I would say wrong. My understanding is you come mainly (among other things) to forums for one of two reasons:
1. You want to share what you know by helping other people.
2. To get help on something you don't know (your level of cerifications is in mind). For example it is not acceptable for a ccna, ccnp, or ccie to come here or any where else and say "how do I change my host name".
You are a ccnp even if you dont know the answer for that question ( which I think you shouldn't be asking coz it is a ccna kinda of question), you did exams on how to troubleshoot, where to get answers during your ccnp courses, you need to put that in action, you should do some research before asking for help which for sure would have provided you with an answer, go to google and type in "bad file magic number cisco" and see how many pages you will get for that search, click on google groups with that same search and see how many results are there with the SAME exact problem you have, and it will take under a minute for you to have your question answered. some forums became a place for some people who are just lazy (I DONT MEAN YOU), if you visit a few forums, news groups etc you will be amazed.
You are being sarcastic about your boss, yet posting the same issue he/she couldn't answer, so what is the difference? you tell me, atleast he/she tried on his/her own. My 0.02 cents are, the more letters we add in front of our names the more knowledgable and professinal we should be.
Cobby

2002-04-08, 11:32 pm

Well in reference to my buddy Geo who is Incidentally my boss too. The first course of action I tried was using Cisco's search engine which as you know is Google and used to be cisco.google.com and is now just the standard used at Cisco.com and found several different causitive situations but none seemed to fit this senario.
Also as much as we point fun at each other I must admit he is the most talented Perl/C coder I have ever met and knows as much about VI commands as Bill Joy. So I know he too reads this forum, sorry inside joke I guess.
So anyhow the console prompt was the AAA login that as I said is why reseting the P/W did nothing and loading the startup-config caused errors because it was as you said corrupted.

Maybe due to a bad erase attempt, I am not sure about that part.
There is a gaggle of google info regarding corrupt IOS images and bad mem traces from sh stack cmds sh tech output.

But anyways I believe professionalism is key but never take yourself too seriously as it leads to high blood pressure.
C'mon out to Vegas I'll buy ya a beer and you can show me how to set that hostname thingy you spoke of.
Peace man
web

2002-04-09, 1:11 am

Peace, thanks
Yeti-GBR1

2002-04-09, 2:40 am

Presumably you you managed to find all this out after you tried a password recovery i.e. placed them into the BOOT mode rather than the default boot (if that makes sense)

That is :

Router(boot)> as oppossed to Router>

If not then how?

And this should have been the 1st point of call IMHO...opinions pls.

BTW thanks for letting us know how you solved the problem...Darn boss's
MadChef

2002-04-09, 5:46 am

How do I change my host name?

MC
Yeti-GBR1

2002-04-09, 5:53 am

MC your taking the P!ss now
wirechild

2002-04-09, 12:46 pm

All I will say is when I first saw this post before anyone replied I started to reply with this is a CCNA Forum question and then I noticed the guy claimed to be a CCNP. I figured he wouldn't understand my reply so I decided to not bother.
By the way, I have installed and upgraded about 800 routers in the last year and a half and I have this error message numerous times and I troubleshooted it with CCO.
Cobby

2002-04-09, 2:53 pm

Well in all honesty I have only upgraded IOS and reimaged about 1/4 the routers you have and I really never encountered that error until now.

I don't mind taking some bumps if I am learning something.

But it was very consistent, meaning all three did the same.

After configuring the routers from the rommon> then loading the images and reloading it was the same on all.

Thanks for the insight.

Peace
Bolero

2002-04-09, 6:46 pm

I'm just glad that this discussion is here so I can refer to it when I do come across this problem someday...

What's obvious to one may not be to another...
Yankee

2002-04-09, 7:02 pm

quote:
Originally posted by MadChef
How do I change my host name?

MC



How do I change my profession?

Yankee
Cobby

2002-04-09, 8:52 pm

I hear Cisco is producing Hostname stickers that easily affix to the outside of your router.
This may be the best method.
The Reamer

2002-04-09, 9:20 pm

I think we all have had a "brain fart" from time to time.

Just when you think you know something, you forget the simplest things.

Reamer
doctorcisco

2002-04-10, 2:40 pm

quote:
Originally posted by MadChef
How do I change my host name?

MC



Don't visit the same friends next time. ;-)

doc
MadChef

2002-04-10, 8:23 pm

quote:
Originally posted by doctorcisco


Don't visit the same friends next time. ;-)

doc



I had to read your response three times to figure it out. I think maybe beer had something to with that.

MC
catfisch

2002-04-17, 12:33 am

Had this same problem on an old 4500.. tried to load an IOS that was to big for the flash.. do a sho flash and make sure you have enough space for the IOS ver that is shown. If you cant get that far.. do a copy tftp flash and load a IOS version that will fit in the flash you have...
-Catfisch
Yeti-GBR1

2002-04-20, 1:17 pm

Odd but guess what I just got a "Bad File Magic" error whilst upgrading a 2620!! solution:

http://www.cisco.com/warp/public/701/59.html

I tried using the Fastethernet port as shown in :

http://www.cisco.com/warp/public/471/76.html

But that failed so I resorted to the method using the console to upload the new IOS version

Took a while but it solved the problem
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2009 examnotes.net