Table Of Contents
Scheduling Jobs
Scheduling EXEC Mode and Network Configuration Jobs
Reviewing Scheduled Jobs
Scheduling Jobs
Cisco E-DI provides the option to schedule EXEC mode and network configuration jobs. This is a useful tool for automating monitoring and operational tasks in a controlled fashion. A job can be scheduled for one time, or for repeated implementation.
Cisco E-DI keeps a history of jobs and logs. A scheduled job could be a Cisco E-DI command or a perl script. Typical tasks which could be scheduled would be the periodic synchronization of the Cisco E-DI data cache with the NE, or pushing configuration changes to NEs.
This chapter includes the following information:
•
Scheduling EXEC Mode and Network Configuration Jobs
•
Reviewing Scheduled Jobs
Scheduling EXEC Mode and Network Configuration Jobs
Table 8-1 gives the commands that you can use to schedule jobs.
Table 8-1 Commands to Schedule Jobs
Action
|
Command
|
To create a job with a specified name.
|
[SVR:/server](config)# schedule-job name
|
To create a job with an optional description.
|
[SVR:/server](config)# schedule-job name
description Desc
|
To define the commands to be run. Commands should be separated by semicolons (;)
|
[SVR:/server](schedule-job)# execute cmd1; cmd2;
.....
|
To define the perl script to be run.
|
[SVR:/server](schedule-job)# execute perl
/users/admin/myperlscript.pl
|
To specify when you want the job to start running.
The values are:
– Month—Name of the month
– Day—Day of the month
– Year—Between 2003-2020
– Hour—0-23
– Minutes— 0-59
Note You can modify any of the parameters of a scheduled job such as start time, stop time, and repeat frequency. Enter the command with the updated value.
|
[SVR:/server](schedule-job)# start-at month day
year hour minutes
|
To specify when you want to the job to stop running.
|
[SVR:/server](schedule-job)# stop-at month day year
hour minutes
|
To specify the repetition frequency with one of the frequency parameters listed above.
Note If you do not specify the repeat frequency, the job will be run once.
|
[SVR:/server](schedule-job)# repeat frequency
[minutes | hours | days | weeks |months | years]
number
|
To delete a scheduled job.
|
[SVR:/server](config)# no schedule-job name
|
The following example shows two scheduled jobs:
start-at april 7 2005 17 11
repeat frequency minutes 2
execute network ; clear alarms
start-at april 7 2005 17 10
repeat frequency minutes 2
execute network ; inventory
Reviewing Scheduled Jobs
Table 8-2 provides options to review scheduled jobs, job implementation history, and detailed logs:
Table 8-2 Commands to Review Jobs
Action
|
Command
|
To display a list of all jobs.
|
[SVR:/server]# show job list
|
To display details of the scheduled job.
|
[SVR:/server]# show job details name
|
To display all detailed logs of a job.
|
[SVR:/server]# show job details name logs
|
To display the latest job history.
|
[SVR:/server]# show job details name logs
latest
|