suspend_job
Suspends a job or set of jobs matching the filter criteria. Executions on any of the targets and scheduled to start within the beginning and ending time window are suspended.
Format
emcli suspend_job [-name="job_name_pattern"] [-owner="job_owner"] [-type="job_type"] [-targets="target_name:target_type"] [-input_file=property_file:"filename"] [-preview] [ ] indicates that the parameter is optional
Options
-
name
Name or pattern of the job(s) to suspend.
-
owner
Owner of the job(s).
-
type
Job type of the job(s).
-
targets
Target name and target type of the job(s).
-
input_file
Specify the filtering properties of the file in "filename."
Any jobs matching all the specified filter criteria are resumed. You must specify at least one filter, and the logged in administrator must have the necessary privileges on the matching jobs.
If the property file is provided, criteria can be read from it as well as the command line. You can specify the execution targets and/or starting and ending time window in this file. All other properties in this file are ignored.
For more information about the input_file parameter, see -input_file Syntax Guidelines.
-
preview
Only lists the jobs that would be suspended.
Examples
Example 1
This example suspends a job named MYJOB.
emcli suspend_job -name=MyJob
Example 2
This example suspends jobs or job executions matching search criteria in suspend_prop.txt. If the property file contains job details, matching jobs are suspended. If the property file contains time or target details, matching executions are suspended. If the property file contains job, time, and target details, matching executions of the matching jobs are suspended.
emcli suspend_job -input_file=property_file:/tmp/suspend_prop.txt