Friday, August 22, 2008

Cisco Backups (SNMP and TFTP)

Here is some info for backing up Cisco gear using SNMP and TFTP. I'm currently just using a cron job that sends an SNMP SET command to the Cisco device which triggers a TFTP transfer of the config. You can use different OID's to get the running config or the config from NVRAM.

This is the important part (Perl code):
`snmpset -c $rwpassword -v2c $ipaddy .1.3.6.1.4.1.9.2.1.55.$tftp_server string $name.bak`;


I have an updated script that deals with getting the running config vs. the stored config and also gets the config from CatOS devices. If anyone is interested in it, either comment or send me an email (jason[at]cosmicegg.net) and I'll post it.

Here is a Google Doc with some more information:
Cisco Routers and Switches Backups

0 comments: