The commands in this page may be used to manage and schedule the execution of jobs.
Commands
job
|
|
job <job ID>
Creates a job.
|
|
|
Syntax Description |
job ID |
Any integer |
|
Default |
N/A |
|
|
Configuration Mode |
config |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config) # job 100switch (config job 100) # |
|
|
Related Commands |
show jobs |
|
|
Notes |
|
|
command
|
|
command <sequence #> | <command>
Adds a CLI command to the job.
|
|
|
Syntax Description |
sequence # |
An integer that controls the order the command is executed relative to other commands in this job. The commands are executed in an ascending order. |
|
command |
A CLI command |
|
|
Default |
N/A |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000
|
|
|
Example |
switch (config job 100) # command 10 “show images" |
|
|
Related Commands |
show jobs |
|
|
Notes |
|
|
comment
|
|
comment <comment>
Adds a comment to the job.
|
|
|
Syntax Description |
comment |
A comment to be added to a specific job (string) |
|
Default |
N/A |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config job 100) # comment Job_for_example |
|
|
Related Commands |
show jobs |
|
|
Notes |
|
|
enable
|
|
enable
Enables the specified job.
|
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config job 100) # enable |
|
|
Related Commands |
show jobs |
|
|
Notes |
If a job is disabled, it will not be executed automatically according to its schedule; nor can it be executed manually. |
|
execute
|
|
execute Forces an immediate execution of the job. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config job 100) # execute |
|
|
Related Commands |
show jobs |
|
|
Notes |
|
|
fail-continue
|
|
fail-continue
Continues the job execution regardless of any job failures.
|
|
|
Syntax Description |
N/A |
|
|
Default |
A job will halt execution as soon as any of its commands fails |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config job 100) # fail-continue |
|
|
Related Commands |
show jobs |
|
|
Notes |
|
|
name
|
|
name <job name>
Configures a name for this job.
|
|
|
Syntax Description |
name |
Specifies a name for the job (string) |
|
Default |
N/A |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config job 100) # name my-job |
|
|
Related Commands |
show jobs |
|
|
Notes |
|
|
schedule type
|
|
schedule type <recurrence type>
Sets the type of schedule the job will automatically execute on.
|
|
|
Syntax Description |
recurrence type |
The available schedule types are:
|
|
Default |
once |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config job 100) # schedule type once |
|
|
Related Commands |
show jobs |
|
|
Notes |
A schedule type is essentially a structure for specifying one or more future dates and times for a job to execute. |
|
schedule <recurrence type>
|
|
schedule <recurrence type> <interval and date>
Sets the type of schedule the job will automatically execute on.
|
|
|
Syntax Description |
recurrence type |
The available schedule types are:
|
|
interval and date |
Interval and date, per recurrence type. |
|
|
Default |
once |
|
|
Configuration Mode |
config job |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config job 100) # schedule monthly interval 10 |
|
|
Related Commands |
show jobs |
|
|
Notes |
A schedule type is essentially a structure for specifying one or more future dates and times for a job to execute. |
|
show jobs
|
|
show jobs [<job-id>] Displays configuration and state (including results of last execution, if any exist) of existing jobs. |
|
|
Syntax Description |
job-id |
A job ID whose information to display |
|
Default |
N/A |
|
|
Configuration Mode |
Any command mode |
|
|
History |
3.1.0000 |
|
|
Example |
switch (config) # show jobs 10 Job 10: Status: inactive Enabled: yes Continue on failure: no Schedule Type: once Time and date: 1970/01/01 00:00:00 +0000 Last Exec Time: Thu 2012/04/05 13:11:42 +0000 Next Exec Time: N/A Commands: Command 10: show terminal Last Output: CLI current session settings: Terminal width: 158 columns Terminal length: 38 rows Terminal type: xterm-256color X display setting: (none) |
|
|
Related Commands |
|
|
|
Notes |
|
|
Last updated: