Schedule Automatic backup config in Cisco Nexus
Nexus-Sw1(config)#feature scheduler //Enable scheduler service in Nexus
Nexus-Sw1(config)#scheduler job name backup-daily // Job Name
Nexus-Sw1(config)#scheduler aaa-authentication username abcd password abcd@123 // AAA - Authentication for Job created above (If AAA configured)
Nexus-Sw1(config)#scheduler job name backup-daily
copy running-config tftp://192.168.1.23/$(SWITCHNAME)-cfg.$(TIMESTAMP) //IP of TFTP SERVER , file will saved with switch name and timestamp
exit
Nexus-Sw1(config)#scheduler schedule name backup-daily // Setup Schedule to run for the JOB
Nexus-Sw1(config-schedule)# time ?
daily Specify a daily schedule
monthly Specify a monthly schedule
start Specify a future time schedule
weekly Specify a weekly schedule
Example :
Nexus-Sw1(config-schedule)# time start now repeat 00:00:05
Schedule starts from Mon Mar 4 10:44:41 2013
Nexus-Sw1(config-schedule)# job name backup-daily // Job Name to be schedule in Scheduler
Nexus-Sw1(config-schedule)# exit
Nexus-Sw1(config)# exit
Nexus-Sw1# show scheduler config
Nexus-Sw1# show scheduler logfile
Comments
Post a Comment