Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loose programming every time we loose power 5

Status
Not open for further replies.

Scruby

IS-IT--Management
Jul 16, 2003
143
US
I have a Cisco 2621 router every time we loose power and the UPS runs out of battery power (like over the weekend) we come in on Monday, the power has of course been restored. But all the programming on the Cisco router has been erased. We have to have someone come out to load the programming back in. Is there a way to store the programming so that when power is lost it (the programming) will not be lost?

Thanks in advance, Scruby
 
Scruby, if you are paying for that person to come out everytime (and fix) you should fire them and ask for your money back.

Here are a couple of things to check:
Make sure you have a config file on the router:

Telnet or use the console conection (with HyperTerm) to the router.

from the router prompt

Router>
!-type in enable or en for short, should look like this

Router>enable
!-hit enter, prompt should now look like

Router#
!-type in command to check for saved configuration

Router# show startup-config
!-hit enter, you will then see the screen scroll through you current configuration should look something like this
Router#show startup-config
Using 533 out of 32762 bytes
!
version 11.2
!
hostname Router3
!
!
!
interface Ethernet0
ip address 169.3.8.210 255.255.0.0
!
interface Serial0
ip address 169.1.7.1 255.255.0.0
clockrate 4000000
!
interface Serial1
ip address 169.1.9.1 255.255.0.0

!!!!!!-----CUT DOWN TO REDUCE SIZE OF CONFIG-----!!!!!!!

If you get an error message this means your config isn't saved, in which case perform this command:
Router#wr mem (or write memory, or copy runn start)
The router will tel you it is building a configuration file and give the prompt back when done. Next you need to check if it is set to boot from NVRAM where the startup-config file is saved. To do this use the command

Router#show version
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-I-L), Version 11.2(2), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1996 by cisco Systems, Inc.
Compiled Wed 13-Nov-96 07:37 by ajchopra
Image text-base: 0x030217A4, data-base: 0x00001000

ROM: System Bootstrap, Version 5.2(5), RELEASE SOFTWARE
ROM: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(5), RELEASE SOFTWARE (fc
1)

Router3 uptime is 6 days, 20 hours, 31 minutes
System restarted by power-on at 23:59:31 UTC Sun Feb 28 1993
System image file is "flash:c2500-i-l.112-2", booted via flash

cisco 2500 (68030) processor (revision D) with 4096K/2048K bytes of memory.
Processor board ID 02417411, with hardware revision 00000000
Bridging software.
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
32K bytes of non-volatile configuration memory.
4096K bytes of processor board System flash (Read ONLY)

Configuration register is 0x2102


NOTICE THAT LAST LINE THERE IT SHOULD EITHER BE 0x2102 or 0x102. IF IT IS ANYTHING DIFFERENT THIS IS WHY YOU ARE NOT GETTING A BOOTED UP WITH A CONFIG FILE.

Now in order to fix it if it is wrong you need to perform the following steps.

Router#configure terminal
Router(config)#confreg 0x2102 or 0x102 (depending on what your show version looked if it was the five character example use the five character 0x102, if it was the six character version use that instead.) Then hit enter, after doing that type exit. You should now be able to shut your router down and bring it back up after the 60 second of powering up you should then be able to enter and confirm your router booted from its startup-config file.


Hope that helps, if you have any error messages let me know what they are, or any questions just feel free to ask.



 
Excellent Post. Star for you. :)

"I can picture a world without war. A world without hate. A world without fear. And I can picture us attacking that world, because they'd never expect it."
- Jack Handey, Deep Thoughts
 
Thanks but I do not need to reset my password
 
Scruby, if you read that whole post it was in NO way about reseting your password. Yes, there are parts in there you can use to reset your password, but what I showed you was a WHOLE different tact. If you don't believe me fine, but I am absolutely positive that 99.9% of the guys in here (who are better than myself) will agree with my post to fix your problem. Yes, there is a chance it is totally something else, but you have not posted any error messages. So I go with what I know, and what I have posted will solve your problem if you are not experiencing actual technical (hardware) problems.
In which case you would see error messages during the bootup. Trust me on this one, go through my post again and actually read it instead of skim it! What I put in there was not, repeat was not a password recovery!!!!
 
I am a newbie to this Cisco stuff. thanks for your help.
Scruby
 
Not a problem, not worried about you being new. I just wanted to make sure you knew that I wasn't blowing smoke up your pooper! If you have questions like what is the confreg or something like that let me know (just so you know the confreg part will tell the router where to pull it's configuration file and how to bootup, like from a tftp server, from nvram, etc.). NVRAM is where you startup-config is at that is where a file will be placed when you run a write memory command, this will be the startup-config. Which is why I said if you perform a show start command and get an error you have no config in there and need to perform the copy run start or write mem command they both perform the same function. As for the confreg the reason I said to check this is someone could have performed a password recovery on it and never reset the confreg to boot from the NVRAM location again, or they could have done it to just be bastards. Either way it all equals out to these are the things you want to check, if you do get some odd error messages during the performance of any of these commands then you have ahardware problem...but if you had one chances are you would see other errors besides just the whole power loss recreate scenario.

Also, I looked at my post, it seemed to come across on the miffed side, I wasn't. Just wanted you to re-look at the post and note that I am telling you something you would need to use.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top