Owner manual

AM456-9026A HP VMA SAN Gateway Users Guide 201
Scheduling Commands
This section provides the syntax for sequences commands, along with an explanation of the
functionality of each command.
A
job command is most commonly used to schedule jobs (commands or shell scripts) so they run
at certain times or dates. A
job is similar to a cron in a UNIX-like environment, and is often used
to automate system administration.
Create a Job
job <job_id> command <sequence #> <CLI command>
no job <job_id> command <sequence #>
Add a CLI command to the job (create the job if it doesn't already exist). The job will be placed in
the "pending" state if a scheduled time has already been specified, otherwise it will be "inactive".
The
<sequence #> is an integer and controls the order within the job as to when the particular
CLI command will be executed. Commands are executed from smallest to largest
<sequence #>.
The
no command deletes the command from the job.
Add a Comment to a Job
job <job_id> comment <comment>
no job <job_id> comment
Add a comment to the job for display in show job <job_id>. No other use. The no modifier
deletes the comment.
Remove Job States
no job <job_id>
Remove all states associated with the specified <job_id>. If the job has not executed, the timer
event is canceled. If the job was executed, the results are deleted along with all other job state.
Specify an Execution Time
job <job_id> date-time <hh:mm> [<date>]
job <job_id> date-time <hh:mm:ss> [<date>]
Set the time for the job to execute. If the time specified is in the past, the job will not execute and
will be in the "inactive" state. If the job is currently scheduled and the indicated time is in the past,
the job will be canceled.