07-29-2002 05:14 AM - edited 03-02-2019 12:14 AM
What would be the best method to generate a weekly automatic tftp startup config backup in a 2501 router. I need the back up to be an automatic process as vendors may be making changes to the customers router. If possible I would like to date each back up and keep an ongoing database of the backups
07-29-2002 05:50 AM
there is no inbuilt command in IOS to acheive this, you cannot automate backup to TFTP, but i am pretty sure some script can be written to do this eg using PERL etc (someone on this list might already have one????)
R/Yusuf
07-29-2002 06:00 AM
Thats what I suspected, and was also thinking that a pearl script might work. If anyone could help me out with that i would appreciate it, my scripting still needs some work.
Thanks
Chuck
07-29-2002 06:14 AM
Chuck - search the web for Perl Cisco TFTP or something like that. I know there are a lot of Perl scripts out there people have written which you can use to "automate" this.
I would think something like the following should work in a Perl script:
Telnet to router
Issue command-line syntax to initiate TFTP of config to TFTP server
exit telnet session
Look for config in directory where it should have downloaded
Perform some sort of date comparision on your file vs. the current date
If I run accross a specific script, I will post it out here for you.
Scott
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide