Strategy to save sync configs (run->start)

Answered Question
Aug 9th, 2010

I posted on this topic some time ago and I can't find the topic.  Our helpdesk personnel are tasked with port management (enable/disable ports).  Apparently there is no way, even with CiscoView, to allow a user to save/sync the running config.  I, as the admin, can run a "sync" job, but that is not good enough.  I need to allow my port admins to save the config once they have enabled/disabled ports.

So what strategy do you use in your environments?  The biggest issue we face is power.  Obviously if we lose power for longer than the UPS can sustain, the config will revert back to the last saved startup-config (upon power being restored/cold boot).

I had thought about incorporating a switch "save" feature on my IP address management tool.  Something that would use PHP/SNMP calls to save the config.  I really wish CiscoWorks had something like this built into the CiscoView product...

Thanks for sharing your ideas.

I have this problem too.
0 votes
Correct Answer by Collin Clark about 6 years 3 months ago

2950 - nope

3550 - nope

3750 - E series only

6509 - I believe it depends on the Sup.

EEM won't be good fit. How about we look at a cron job on the switches? We'll have to check and see if it's supported on all these platforms.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Jason Fraioli Mon, 08/09/2010 - 13:30

Collin,

Thank you for the prompt and detailed reply.  How do TCL scripts work?  It appears as though I would load this TCL script on a tftp/ftp server and exec it somehow at startup using the tclsh command.

I found this script on the EEM link you posted ( http://forums.cisco.com/eforum/servlet/EEM?page=eem&fn=script&scriptId=1103 ), but was wondering if you could give me a couple expert thoughts on how this could be implemented.  It seems as though the applets are entered into the IOS events manager, but I'm not sure if my thoughts are accurate for TCL implementation.  The best information I could find thus far is -> http://www.netcraftsmen.net/resources/archived-articles/374-tcling-your-cisco-router.html

Thanks again!

Collin Clark Mon, 08/09/2010 - 13:37

The script will live on flash. Most TCL scripts look for a log entry of some sort (interface going down, SNMP trap, etc) and EEM will take action on it. The script you have the link for is to backup the old configureation to flash when a change has been made. It will not save the config when the change has been made. Only a handful of switches support EEM. Can you post your hardware since EEM may not be a viable option? Meanwhile I'll try and find a script that will write the config on a change.

Jason Fraioli Mon, 08/09/2010 - 13:46

2950, 3550, 3750, 6509.  I know the 2950 will not be supported and I'm not sure what option I have there (besides a CiscoWorks sync archive).

Correct Answer
Collin Clark Mon, 08/09/2010 - 13:51

2950 - nope

3550 - nope

3750 - E series only

6509 - I believe it depends on the Sup.

EEM won't be good fit. How about we look at a cron job on the switches? We'll have to check and see if it's supported on all these platforms.

Jason Fraioli Mon, 08/09/2010 - 14:06

Is there a way to use the recurring command to make kron execute the command every hour?

edit: It doesn't look like there is a recurring option for hours, only days/months.  Does this imply that I'll need to create a kron occurance for each hour of the day and have each of those kron jobs run as a recurring event for each day?

Collin Clark Mon, 08/09/2010 - 14:08

I believe so. I'd have to dig through the configuration guide to verify.

Actions

This Discussion

Related Content