Cisco Cisco Workload Automation 6.3 Guide Du Développeur

Page de 64
36
Command Descriptions
file
The following example deletes all file dependencies running on the agent 
Windows Agent
 for job alias 
payroll.
SACmd depdel -a payroll -t FILE -h “Windows Agent”
The following command deletes all job dependencies with the alias 
holiday that job alias payroll depends on.
SACmd depdel -a payroll -d holiday -t JOB
file
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 
file command lets you pipe an input ascii text file containing CWA commands for batch processing. 
Syntax
SACmd file file_name
Note: 
Specify the full, absolute directory path to your file.
Operation
The file should contain a list of individual commands, with each command separated by a carriage return (one command 
per line).
For example:
# this is just a test script
listrule
jobmon +iaE
jobadd -a payroll
To add comments to the text file, precede the comment with two forward slashes ( // ) or with the sharp ( # ) sign. The 
file command ignores any line beginning with two forward slashes or the sharp sign. Any line composed entirely of 
spaces or tabs is also ignored.
If a command in the list produces an error, that command is skipped, but the remaining lines are processed.
Example
The following example inputs the file cmdlist.txt to the 
file command. cmdlist.txt contains a list of CWA commands 
to process.
SACmd file cmdlist.txt
grpupd
The 
grpupd command updates inherit attributes for jobs in the specified group. You can obtain the group's job run ID by 
using the 
jobmon command.
Syntax
SACmd grpupd -i ID -a