This example shows how to create a scheduler job named backup-cfg, save the running configuration to a file
in bootflash, copy the file from bootflash to a TFTP server, and save the change to the startup configuration:
switch# configure terminal
switch(config) # scheduler job name backup-cfg
switch(config-job) # cli var name timestamp
$(timestamp) ;copy running-config
bootflash:/$(SWITCHNAME)-cfg.$(timestamp) ;copy
bootflash:/$(SWITCHNAME)-cfg.$(timestamp)
tftp://1.2.3.4/ vrf management
switch(config-job) # copy running-config startup-config
Deleting a Job
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Deletes the specified job and all commands defined
within it.
switch(config) # no scheduler job name
name
Step 2
The name is restricted to 31 characters.
(Optional)
Displays the job information.
switch(config-job) # show scheduler job
[name]
Step 3
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config-job) # copy
running-config startup-config
Step 4
This example shows how to delete a job called configsave:
switch# configure terminal
switch(config)# no scheduler job name configsave
switch(config-job)# copy running-config startup-config
switch(config-job)#
Defining a Timetable
You must configure a timetable. Otherwise, jobs will not be scheduled.
If you do not specify the time for the time commands, the scheduler assumes the current time. For example,
if the current time is March 24, 2008, 22:00 hours,jobs are started as follows:
•
For the time start 23:00 repeat 4:00:00 command, the scheduler assumes a start time of March 24,
2008, 23:00 hours.
•
For the time daily 55 command, the scheduler assumes a start time every day at 22:55 hours.
•
For the time weekly 23:00 command, the scheduler assumes a start time every Friday at 23:00 hours.
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 6.x
40
Configuring the Scheduler
Deleting a Job