

I've done it effectively with Linux's snmp tools. You'll also need something that can send snmp requests. It's not terribly straight forward, but is incredibly useful.įirstly, you'll need a TFTP server (unsurprisingly).

Sample config to have Archive back up your config to a tftp server daily: archive Kron occurrence BackupRunningConfig at 23:55 Mon recurring Sample config to have Kron write config and back it up to a tftp server once a week: kron occurrence SaveConfig at 23:50 Mon recurring

In either of the below samples, you can adjust the times to your needs, these are just what I quickly pulled out of some production gear. Specifically how to dynamically set the filename with the $h and $t tags. See this link on the Cisco Learning network for more useful info on Archive. Copying out with Kron overwrites the previous config, while Archive allows you to keep up to 14 different config versions in the specified location. Archive is a way to store multiple copies of the config in a sequential fashion and roll back configs if needed to a previous version.

Use Cisco's Archive functionality for configuration management. So the command used in the scheduler is show run | redirect tftp://$SERVERIP/$PATH/$FILE (Unless you've turned off file prompt confirmation, however I don't recommend it as a normal setting.) Redirecting does not require confirmation. As you pointed out, copy run tftp requires file prompt confirmation. This will allow you to execute predefined commands on a scheduled basis. Use Cisco's Kron functionality for command scheduling. (Especially in GNS3.) The below options are available to you for automating confirguation backup, however I would not recommend doing so every 1 minute. Some older devices/IOS loads will have different capabilities.)ĮDIT: You are asking about doing this every one minute, which as you found out in our chat about this question, will bog down your router. (Which one you use depends on your needs and sometimes on the device and IOS load. You have several options to get this type of functionality on a Cisco device.
