hit counter script

Configuration Examples For The Scheduler; Creating A Scheduler Job; Scheduling A Scheduler Job; Displaying The Job Schedule - Cisco Nexus 3548 series Configuration Manual

Nx-os system management, release 7.x
Hide thumbs Also See for Nexus 3548 series:
Table of Contents

Advertisement

Configuration Examples for the Scheduler

Configuration Examples for the Scheduler

Creating a Scheduler Job

This example shows how to create a scheduler job that saves the running configuration to a file in bootflash
and then copies the file from bootflash to a TFTP server (the filename is created using the current time stamp
and switch name):
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)# end
switch(config)#

Scheduling a Scheduler Job

This example shows how to schedule a scheduler job called backup-cfg to run daily at 1 a.m.:
switch# configure terminal
switch(config)# scheduler schedule name daily
switch(config-schedule)# job name backup-cfg
switch(config-schedule)# time daily 1:00
switch(config-schedule)# end
switch(config)#

Displaying the Job Schedule

This example shows how to display the job schedule:
switch# show scheduler schedule
Schedule Name
---------------------------
User Name
Schedule Type
Last Execution Time : Fri Jan 2 1:00:00 2009
Last Completion Time: Fri Jan 2 1:00:01 2009
Execution count
-----------------------------------------------
-----------------------------------------------
back-cfg
switch(config)#

Displaying the Results of Running Scheduler Jobs

This example shows how to display the results of scheduler jobs that have been executed by the scheduler:
switch# show scheduler logfile
Job Name
Schedule Name
Completion time: Fri Jan 1
--------------------------------- Job Output ---------------------------------
`cli var name timestamp 2009-01-01-01.00.00`
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
88
: daily
: admin
: Run every day at 1 Hrs 00 Mins
: 2
Job Name
Last Execution Status
: back-cfg
: daily
1:00:01 2009
Success (0)
Job Status: Failed (1)
User Name : admin
Configuring the Scheduler

Advertisement

Table of Contents
loading

Table of Contents