Example
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.
Displays the job information.(Optional) switch(config-job) # show scheduler
job [name]
Step 3
Saves the change persistently through reboots
and restarts by copying the running
configuration to the startup configuration.
(Optional) switch(config-job) # copy
running-config startup-config
Step 4
Example
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:
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
84
Configuring the Scheduler
Deleting a Job