Kron?......no, its a Scheduler!
Basic Scheduler config
Prerequisites for the Scheduler
The scheduler has the following prerequisites:
-
You must enable any conditional features before you can configure those features in a job.
-
You must have a valid license installed for any licensed features that you want to configure in the job.
-
You must have network-admin user privileges to configure a scheduled job.
Guidelines and Limitations for the Scheduler
The scheduler has the following configuration guidelines and limitations:
-
The scheduler can fail if it encounters one of the following while performing a job:
-
Verify that you have configured the time. The scheduler does not apply a default timetable. If you create a schedule and assign jobs and do not configure the time, the job is not started.
-
While defining a job, verify that no interactive or disruptive commands (for example, copy bootflash: file ftp: URI, write erase, and other similar commands) are specified because the job is started and conducted noninteractively.
Configuration
!
feature scheduler
scheduler logfile size 1024
scheduler job name SCH-CONFIG-BACKUP
cli var name timestamp $(TIMESTAMP) ;copy running-config bootflash:/$(SWITCHNAME)-cfg.$(timestamp) ;copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp) scp://admin:rgrs753jlh@10.50.40.170/CLV-HO-DC-1-SW-02/ vrf default
scheduler schedule name SCH-SCH-DAILY
job name SCH-CONFIG-BACKUP
time daily 23:00
!
!