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.
Solved! Go to Solution.
Good question, have you looked into a cron job that runs hourly and saves the config? If you have devices that support EEM, you could script that function as well.
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
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.
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).
I found an article here that might be what I am looking for... http://articles.techrepublic.com.com/5100-10878_11-5553313.html
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?