Cisco Cisco Workload Automation 6.3 Developer's Guide
47
Command Descriptions
jobrerun
Syntax
SACmd jobremove ID [ALL|ONE] [YES|NO]
jobremove -options
Operation
The ID parameter is required: the rest are optional. If all optional parameters are specified, they must be specified in the
order given. Because a job can be placed in the
order given. Because a job can be placed in the
Stopped or Aborted status while in the Active
status using the
jobhold or jobcancel commands, jobremove does not remove jobs with those statuses. Jobs with the Held or
Cancelled
Cancelled
status, however, can be removed
Warning:
Active jobs cannot be stopped and restarted on Windows machines. Other platforms do allow this action.
Examples
The following example removes all job occurrences and does not release any dependencies on it. In this case, the
job rule ID of the specified job instance is used to identify and remove all other instances of that job rule that have
not yet run.
job rule ID of the specified job instance is used to identify and remove all other instances of that job rule that have
not yet run.
SACmd jobremove 123 ALL NO
The following example removes specific job instances, but it does not release any dependencies on it. In this case,
the ID refers to the run ID of the job being removed.
the ID refers to the run ID of the job being removed.
SACmd jobremove 123 ONE NO
The following example removes the specified job occurrence, and releases any dependencies upon it. In this case,
the ID refers to the job run ID of the job being removed.
the ID refers to the job run ID of the job being removed.
SACmd jobremove 123 YES
jobrerun
The
jobrerun command lets you manually rerun a completed job or job group. You can obtain the job run ID by using
the
jobrerun command.
Syntax
SACmd jobrerun ID [YES|NO] [-s step]
Option
Description
ID
The job run ID of the job to remove. This option is required.
ALL|ONE
Specifies whether to remove all occurrences of the job that have not run, including
occurrences for future dates or whether to remove just the specified job run occurrence. If
ALL is specified, this parameter refers to the job rule ID of the specified job run ID to remove
all occurrences.If not specified, the default is
occurrences for future dates or whether to remove just the specified job run occurrence. If
ALL is specified, this parameter refers to the job rule ID of the specified job run ID to remove
all occurrences.If not specified, the default is
ONE to remove just the specified job instance.
YES|NO
Specifies whether to release the job’s dependents when removing the job. If
YES, its
dependents will no longer be dependent on this job. If
NO, its dependents stay dependent
on this job. The default is
NO. This value must follow after the ID.