Cisco Cisco Workload Automation 6.3 Guide Du Développeur

Page de 64
39
Command Descriptions
jobadd
Syntax
SACmd inactrule -a alias|-i ID
inactrule -options
Examples
The following example inactivates the job with the alias name 
invent.
SACmd inactrule -a invent
The following example inactivates the job with the ID
 2150
.
SACmd inactrule -i 2150
jobadd
Warning: 
Always enclose arguments containing spaces in quotes, or the command will not execute successfully. 
For example, if the Program Files folder is included in a path statement as an argument, the entire path must be 
enclosed by quotes.
The 
jobadd
 
command lets you add a job or job group to the production schedule. You can add a job either by alias or 
by ID. You can obtain the job occurrence ID and/or alias by using the 
listrule command. Unlike the submit command, 
the job is submitted adhoc. An adhoc job isn’t dependent on a calendar because a new instance is submitted manually 
into the schedule. Job groups can specify group parameter values if they are expressed in 
NAME=VALUE pairs.
Syntax
SACmd jobadd -a alias| -i ID [-p params]
jobadd -options
Examples
This example adds a job with the alias name 
invent2.
SACmd jobadd -a invent2
The following example adds a job with the job ID 
10000.
Option
Description
-a alias
Specifies the alias name of the job or job group to disable. Either this option or 
-i ID is 
required. 
-i ID
Specifies the ID of the job or job group to disable. Either this option or 
-a alias is required.
Option
Description
-a alias
Specifies the alias name of the job or job group to add. Either this option or 
-i ID is required. 
-i ID
Specifies the ID of the job or job group to add. Either this option or 
-a alias is required.
-p params
Specifies override parameters. For group parameters, separate 
NAME=VALUE pairs with 
commas.