- New and Changed Information
- Preface
- Overview
- Configuring CFS
- Configuring NTP
- Configuring PTP
- Configuring CDP
- Configuring System Message Logging
- Configuring Smart Call Home
- Configuring Rollback
- Configuring Session Manager
- Configuring the Scheduler
- Configuring SNMP
- Configuring RMON
- Configuring Online Diagnostics
- Configuring the Embedded Event Manager
- Configuring Onboard Failure Logging
- Configuring SPAN
- Configuring ERSPAN
- Configuring LLDP
- Configuring NetFlow
- Supported RFCs
- EEM Events and Examples
- Configuration Limits for Cisco NX-OS System Management
- Information About the Scheduler
- Licensing Requirements for the Scheduler
- Prerequisites for the Scheduler
- Guidelines and Limitations
- Default Settings
- Configuring the Scheduler
- Verifying the Scheduler Configuration
- Configuration Examples for Scheduler
- Additional References
- Feature History for the Scheduler
Configuring the Scheduler
This chapter describes how to configure the scheduler on Cisco NX-OS devices.
This chapter includes the following sections:
- Information About the Scheduler
- Licensing Requirements for the Scheduler
- Prerequisites for the Scheduler
- Guidelines and Limitations
- Default Settings
- Configuring the Scheduler
- Verifying the Scheduler Configuration
- Configuration Examples for Scheduler
- Additional References
- Feature History for the Scheduler
Information About the Scheduler
The scheduler allows you to define and set a timetable for maintenance activities such as the following:
Jobs consist of a single command or multiple commands that define routine activities. Jobs can be scheduled one time or at periodic intervals.
This section includes the following topics:
Scheduler Overview
The scheduler defines a job and its timetable as follows:
- Job—A routine task or tasks defined as a command list and completed according to a specified schedule.
- Schedule—The timetable for completing a job. You can assign multiple jobs to a schedule. A schedule is defined as either periodic or one-time only:
–
Periodic mode—A recurring interval that continues until you delete the job. You can configure the following types of intervals:
Daily—Job is completed once a day.
Weekly—Job is completed once a week.
Monthly—Job is completed once a month.
Delta—Job begins at the specified start time and then at specified intervals (days:hours:minutes).
–
One-time mode—Job is completed only once at a specified time.
Remote User Authentication
Before starting a job, the scheduler authenticates the user who created the job. Since user credentials from a remote authentication are not retained long enough to support a scheduled job, you need to locally configure the authentication passwords for users who create jobs. These passwords are part of the scheduler configuration and are not considered a locally configured user.
Before starting the job, the scheduler validates the local password against the password from the remote authentication server.
Logs
The scheduler maintains a log file containing the job output. If the size of the job output is greater than the size of the log file, then the output is truncated. For more information, see the Defining the Scheduler Log File Size.
High Availability
Scheduled jobs remain available after a supervisor switchover or a software reload.
Virtualization Support
Jobs are created in the virtual device context (VDC) that you are logged into. By default, Cisco NX-OS places you in the default VDC. For more information, see the Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide, Release 5.x.
Licensing Requirements for the Scheduler
Prerequisites for the Scheduler
Guidelines and Limitations
The scheduler has the following configuration guidelines and limitations:
–
If the license has expired for a feature at the time the job for that feature is scheduled.
–
If a feature is disabled at the time when a job for that feature is scheduled.
–
If you have removed a module from a slot and a job for that slot is scheduled.
- 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.
Default Settings
Table 12-1 lists the scheduler default settings.
|
|
|
|---|---|
Configuring the Scheduler
This section includes the following topics:
- Enabling the Scheduler
- Defining the Scheduler Log File Size
- Configuring Remote User Authentication
- Defining a Job
- Deleting a Job
- Defining a Timetable
- Clearing the Scheduler Log File
- Disabling the Scheduler
Enabling the Scheduler
You can enable the scheduler feature so that you can configure and schedule jobs.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
DETAILED STEPS
Defining the Scheduler Log File Size
You can configure the log file size for capturing jobs, schedules, and job output.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
DETAILED STEPS
Configuring Remote User Authentication
You can configure the scheduler to use remote authentication for users who want to configure and schedule jobs.
Note
Remote users must authenticate with their clear text password before creating and configuring jobs.
Note
Remote user passwords are always shown in encrypted form in the output of the show running-config command. The encrypted option (7) in the command supports the ASCII device configuration.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
2.
scheduler aaa-authentication password [ 0 | 7 ] password
3.
scheduler aaa-authentication username name password [ 0 | 7 ] password
4.
show running-config | include “scheduler aaa-authentication”
DETAILED STEPS
Defining a Job
You can define a job including the job name and the command sequence.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
3.
command1 ;[ command2 ; command3 ;...]
DETAILED STEPS
Deleting a Job
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
2.
no scheduler job name string
DETAILED STEPS
Defining a Timetable
You can define a timetable in the scheduler to be used with one or more jobs.
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, then 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.
- For the time monthly 23:00 command, the scheduler assumes a start time on the 24th of every month at 23:00 hours.
Note
The scheduler will not begin the next occurrence of a job before the last one completes. For example, you have scheduled a job to be completed at one-minute intervals beginning at 22:00; but the job requires two minutes to complete. The scheduler starts the first job at 22:00, completes it at 22:02, and then observes a one-minute interval before starting the next job at 22:03.
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
2.
scheduler schedule name string
time start { now repeat repeat-interval | delta-time [ repeat repeat-interval ]}
DETAILED STEPS
Clearing the Scheduler Log File
BEFORE YOU BEGIN
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
DETAILED STEPS
|
|
|
|
|---|---|---|
Disabling the Scheduler
BEFORE YOU BEGIN
The scheduler feature must be enabled before you can configure and schedule jobs.
Make sure that you are in the correct VDC. To change the VDC, use the switchto vdc command.
SUMMARY STEPS
DETAILED STEPS
Verifying the Scheduler Configuration
To display the scheduler configuration information, perform one of the following tasks:
|
|
|
|---|---|
Configuration Examples for Scheduler
This section includes the following topics:
- Creating a Scheduler Job
- Scheduling a Scheduler Job
- Displaying the Job Schedule
- Displaying the Results of Running Scheduler Jobs
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):
Scheduling a Scheduler Job
This example shows how to schedule a scheduler job called backup-cfg to run daily at 1 a.m.:
Displaying the Job Schedule
This example shows how to display the job schedule:
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:
Additional References
For additional information related to the scheduler, see the following sections:
Related Documents
|
|
|
|---|---|
Cisco Nexus 7000 Series NX-OS System Management Command Reference |
|
Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide, Release 5.x |
Standards
|
|
|
|---|---|
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature. |
Feature History for the Scheduler
Table 12-2 lists the release history for this feature.
|
|
|
|
|---|---|---|
Feedback