Cisco Cisco Workload Automation 6.3 Developer's Guide

Page of 64
34
Command Descriptions
depdel
Make the job with the alias 
payroll dependent on the file file1.doc existing on the Windows agent.
SACmd depadd -a payroll -t FILE -f c:\file1.doc -h “Windows Agent” -y 200 -e 0
Make the job with the alias 
payroll dependent on all files in C:\ whose sizes have been stable for one hour from 
the present time.
SACmd depadd -a payroll -t FILE -f C:\*.* -h “Windows Agent” -y 204 -e 60
depdel
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 
depdel command deletes job dependencies and file dependencies. It then replaces that job's pre-done instances 
in the production schedule. Refer to the 
submit command.
Syntax
SACmd depdel -a alias [-t FILE|JOB|VARIABLE]
[-d alias -o operator -s status -l occur -z offset -w offset -g]|
[-f file_name -y file_type -x file_extent -h agent_name] [-r Y|N] [-e yyyymmdd]
[-h master_name -v variable_name -o operator -u value]
depdel -options
Caution: 
Options to the 
depdel
 command restrict which dependencies are deleted. If no options are 
specified, all dependencies for the specified job are deleted.
Option
Description
-a alias
Specifies the alias of the job or job group with the dependency to delete. This option is 
required.
-t FILE|JOB| VARIABLE
Specifies the type of dependency to delete: for a file dependency, specify 
FILE; for a job 
dependency, specify 
JOB; for a variable dependency, specify VARIABLE.
-d alias
Specify this option to delete only job dependencies with the alias name of the job or job 
group that the above alias depends upon.
-y dep_type
Specify this option to delete only the file dependencies with the following file dependency 
type (in numeric or string format):
File exists: 
Exists, or 200
File doesn’t exist: 
NotExists, or 201
Size is less than or equal to extent: 
SizEle, or 202
Size is greater than or equal to extent: 
SizEge, or 203
Size stable for extent: 
Stable, or 204
Size has changed in extent: 
Changed, or 205
-x extent
Specify this option to delete only the file dependencies with the following extent value.
For 
Size <= or Size >= file size, this value is in bytes.
For 
Size stable for or Size has changed in, this value is in minutes.
-h agent or 
master_name 
Specify this option to delete file or variable dependencies where the dependency exists on 
the agent indicated.