You want to make sure your router automatically saves its configuration on scheduled time? For that purpose you can use kron command on router or switch.
But (yes, there is a but :)) , first you have to configure accurate time on router, to do that use clock set or use ntp server command.
In this lab I'm using TFTP server (tftpd32) for backing up my config, you can use FTP or SCP and kron command to automatically backup configuration.
Here you can download TFTP, SFTP and SCP servers without any fees.
After setting the clock, disable pop-up questions when using copy command, those questions are appears beside you supply the complete source and destination file name in the command line, the IOS will still ask you a question about ip address of TFTP server and file name destination.
To solve the problem use file prompt quit command (the default value is noisy), after that you can start configuring kron scheduler.
Step 1.
HLabR1(config)#kron policy-list SAVECONFIG
HLabR1(config-kron-policy)#cli copy running-config tftp://10.2.0.2/config
HLabR1(config-kron-policy)#exit
HLabR1(config)#kron occurrence SAVE at 21:51 Sun recurring
HLabR1(config)#policy-list SAVECONFIG
Step 2.
Use debug kron all to see what going to happen at scheduled time.
Jul 7 21:51:16.656: Kron CLI return 0'
**CLI 'copy running-config tftp://10.2.0.2/config':
!!1253 bytes copied in 3.268 secs (383 bytes/sec)'
Jul 7 21:51:16.664: Major 4, Minor 7
Jul 7 21:51:16.664: Respond to end of CLI Process
Use show kron schedule command to see when will run again.
No comments:
Post a Comment