Spdsclean Options

Spdsclean options fall into two classes. The first class of spdsclean options are options that define actions. The second class of spdsclean options are options that modify behavior. Examples for both classes of spdsclean options follow.

Spdsclean Options That Define Actions

The spdsclean utility uses the following option settings to define specific actions:
-parmfile parmFile
The -parmfile option to the spdsclean command runs cleanup on the specified SPD Server environment that is defined in the named SPD Server parameter file. The cleanup action empties all directory resources that are defined in the SPD Server parameter file. All files contained in the WORKPATH= path list are deleted. Options which modify -parmfile cleanup actions are described in Spdsclean Options That Modify Behavior
-libnamefile libnameFile
The -libnamefile option runs a cleanup on the SPD Server environment specified in libnameFile, the LIBNAME parameter file. The cleanup empties directory resources that are defined in LIBNAME statements in the LIBNAME parameter file. Cleaning up directory resources removes files and file types that you specify in this action. Spdsclean always deletes residual lock files left behind in the domain directory. The cleanup removes any temporary (TEMP=yes) directories and files. Residual temporary files in the allocated domain directories are deleted by default. You can include ACL files and the LIBNAME state file in the files to be deleted, and you can suppress the default deletion of residual temporary files. Use the -domains option with pattern-matching to filter the domains that you want to clean in libnameFile. For more information, see the description for the -domains option.
-logdir logPath
The -logdir option specifies the path for SPD Server to use when cleaning server log files. SPD Server searches the specified log path directories for .spdslog files. When .spdslog files are found, SPD Server checks them for aging criteria. You specify the aging criteria, which tells SPD Server how long to keep the log files using the -logage option. When spdsclean finds server log files that have a creation date that is older than -logage days, spdsclean deletes the files. Files aged less than or equal to the specified threshold are retained. For more information, see the -LOGAGE option under Spdsclean Options That Modify Behavior.

Spdsclean Options That Modify Behavior

The spdsclean utility uses the following option settings to modify specific behaviors:
-all
The -all setting is equivalent to specifying options using:
-tmp -acl -lib11.
-tmp
The -tmp setting enables deletion of residual temporary files in the LIBNAME domain path list. Deletion enabled is the default setting for the -tmp variable.
+tmp
The -tmp setting disables deletion of residual temporary files in the LIBNAME domain path list.
-acl
The -acl setting enables deletion of ACL files in the LIBNAME domain path list. Enabling the -acl setting deletes .spres11* and .sppro11* files from the selected LIBNAME domains in the specified -libnamefile. Use the -acl setting with care, since it applies to all selected LIBNAME domains. Deleting the ACL files does not give broader access to a given resource. Deleting the ACL files restricts the access to the resource owner. The default setting for -acl is enabled, or +acl.
+acl
The +acl setting disables deletion of ACL files in the LIBNAME domain path list.
-lib11
The -lib11 setting enables deletion of the domain state file, .spdslib11. The default setting is +lib11.
+lib11
The +lib11 setting disables deletion of the domain state file. This is the default setting for the lib111 variable.
-verbose
The -verbose setting is equivalent to specifying -vwork and -vdomain,enabling logging for resource cleanup from WORKPATH, system workspace directories, and LIBNAME domain directories.
+verbose
The +verbose setting is equivalent to specifying +vwork and +vdomain,disabling logging for resource cleanup from WORKPATH, system workspace directories, and LIBNAME domain directories.
-vwork
The -work setting enables logging for resource cleanup from WORKPATH and system workspace directories.
+vwork
The +vwork setting disables logging of resource cleanup for WORKPATH and system workspace directories. This is the default setting for this variable.
-vdomain
The -vdomain setting enables logging for resource cleanup from LIBNAME domain directories.
+vdomain
The +vdomain setting disables logging for resource cleanup from LIBNAME domain directories. This is the default setting for this variable.
-domains dompat1, [dompat2,]
Use the -domains option to specify a domain list. The domain list is a comma-separated list of domain names and wildcard matching patterns that builds the LIBNAME domains from the LIBNAME file when it is processed. Standard pattern matching rules and wildcards apply.
-logage ageDays
Use the -logage option to set the age threshold, in days, for keeping .spdslog files in the SPD Server log directory when the -logdir option is specified. When the -logdir option is specified and the .spdslog files in the SPD Server log directory are older than the threshold ageDays value, they will be deleted. The default value for ageDays is seven days.