Automated Confif Download

Soldato
Joined
18 Oct 2002
Posts
9,158
Automated Config Download

We have around 300 Cisco devices here at work, and we obviously always want a backup of the currently running config on each device, this isn't always easy and what we're really after is an automated solution, preferable free :)

I've come across Kiwi cat tools which is great, just what we're after, but isn't free! Does anyone know of any such products out there on the market?

Regards,

James
 
Last edited:
I use a perl script that grabs the config using TFTP. I've upload it to http://thor.pauleagles.com/cisco_backups.tar

It should be easy enough to get working, check the variables at the top of the script and create a file called RTR_LIST in the working directory that contains either the DNS names or IP addresses of the routers you want to backup - one entry per line. If you can use DNS names then the backup files will have more meaningful names.
 
That's great thanks :)

I assume I'll need perl on my machine to run it? Once perl is installed is it run from the command line?
 
Yep, you'll need perl installed. I've only run this under Solaris and Linux, but it should work under Windows with ActivePerl installed.

If you run it under Windows, you'll need to edit the script to change the locations of the programs that it calls.
 
Burbleflop said:
Yep, you'll need perl installed. I've only run this under Solaris and Linux, but it should work under Windows with ActivePerl installed.

If you run it under Windows, you'll need to edit the script to change the locations of the programs that it calls.

Ok, thanks for the help. I presume I'll need to change the path to perl at the top too?

Also what about lines like:

$snmpset ="/usr/bin/snmpset -v 1 -c $snmprw -t60 -r2 $rtr";

and

$rtrfile="/home/tftpd/$rtr.cfg";

Do I need some extra stuff installed?

Thanks,

James
 
Last edited:
Burbleflop said:
I forgot about that. If you're using Windows then you don't need to have a shebang.

Ok chers, I've just edited the post above with some more concerns too. Any Ideas?

Cheers,

James
 
Last edited:
Basher said:
Ok chers, I've just edited the post above with some more concerns too. Any Ideas?

Cheers,

James

Anyone got any ideas on this? It looks like a need some seperate SNMP software? As this is written for unix, is there a windows equivelent?

Thanks,

James
 
Hi, I've managed to find a spare linux box to try this out on. I've created the relevant files and directories, but when run, I get the following errors:

./backup.pl: line 1: ckup.pl: command not found
./backup.pl: line 6: =/: No such file or directory
./backup.pl: line 9: =ctron: command not found
./backup.pl: line 13: =10.5.140.24: command not found
./backup.pl: line 16: =30: command not found
./backup.pl: line 18: =/RTR_LIST: No such file or directory
./backup.pl: line 19: =/storage: No such file or directory
./backup.pl: line 20: =/LATEST: No such file or directory
./backup.pl: line 21: =/PREV: No such file or directory
./backup.pl: line 22: syntax error near unexpected token `{mkdir'
./backup.pl: line 22: `if (! -d $storage) {mkdir ($storage, 0755)};'

Any ideas?

Regards,

James
 
Back
Top Bottom