08-28-2008 07:34 AM - edited 03-06-2019 01:03 AM
Anyone know if you can do a write net to a tftp server at specified time intervals? Basically do a backup every week or month or so without manually going and doing it?
08-28-2008 05:05 PM
I didn't see exactly what you want here but they have a number of scripts that you could use as a basis. They have both backup and scheduled functions just not both in the same script. Be sure to check you have a new enough IOS since they have added many things in the later ones. This is one of my favorite new ios feature.
08-28-2008 11:24 PM
Hi Joseph01
I think this can be achieved with the "kron" command if your IOS supports it.
Have a look at this article on ConfigureTerminal.com
http://www.configureterminal.com/free/kron.html
If you want to use the method shown on this page, then you might want to change the policy-list as follows
Router(config)# kron policy-list Backup
Router(config-kron-policy)# terminal length 0
Router(config-kron-policy)# show run | redirect tftp://10.1.1.1/test.cfg
Router(config-kron-policy)# terminal length 24
Router(config-kron-policy)# exit
Router(config)# kron occurrence Backup at 23:00 Sun recurring
Router(config-kron-occurrence)# policy-list Backup
Changing the terminal length to 0 makes the "show run" command execute without the normal page breaks. Terminal length 24 is the default setting, so you reset it after you have run the "show run" command.
HTH
Best regards,
Michael
08-29-2008 02:04 PM
Thanks, Ill look into the kron job. Didnt know you could do that. I appreciate the insight.
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