cscfswrm (Deleting a work folder)
- Organization of this page
Format
cscfswrm [-h] -user login-user-ID -pass login-password {-csc HCSC-server-name|-cluster cluster-name} {-name reception-ID|-all } [ -t deletion-start-date-and-time|-d number-of-days]
Function
Deletes folders on a reception basis.
The processing stops after an error occurs when you delete multiple files.
By setting up default values for mandatory options, such as the login user ID, in the HCSC-Manager command definition file, you can omit the specification of these values in this command.
For details on how to use this command, see 5.4.20 Deleting the work folder in the Service Platform Setup and Operation Guide.
Arguments
-h
Displays the usage of commands. When you specify this option, all other options are ignored even if specified.
-user login-user-ID ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 16 characters))
Specifies the user ID that is used to log in to HCSC-Manager. The characters are case sensitive.
-pass login-password ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 16 characters))
Specifies the password that is used to log in to HCSC-Manager. The characters are case sensitive.
-csc HCSC-server-name ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 8 characters))
Specifies the HCSC server name. The characters are case sensitive.
-cluster cluster-name ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 8 characters))
Specifies the cluster name. The characters are case sensitive.
-name reception-ID ~ <one-byte alphanumeric characters and underscores (_)> ((1 to 8 characters))
Specifies the reception ID. The characters are case sensitive.
-all
Deletes all work folders.
-t deletion-start-date-and-time
Deletes the work folders (including the files and folders in the work folders) older than the specified date and time. Note that you can specify the date and time in the following format. You must specify an existing date and time in 14 digits.
- YYYYMMDDhhmmss
-
YYYY: Year (1970 YYYY)
MM: Month (01 MM 12)
DD: Date (01 DD 31)
hh: Hours (00 hh 23)
mm: Minutes (00 mm 59)
ss: Seconds (00 ss 59)
-d number-of-days ~<Integer> ((0 to 365))
Deletes the files in the work folder older than the specified number of days. Specify the number of days in days. If 0 is specified, all the work folders will be deleted.
Return values
Return value |
Meaning |
---|---|
0 |
The command terminated normally. |
1 |
The command terminated abnormally. |
2 |
A communication timeout occurred. |
3 |
An exclusion error occurred. |
9 |
An error occurred when checking the execution permission. |
Notes
-
If work folders remain undeleted, the number of subdirectories might reach the upper limit for the file system of the OS, and a request can no longer be executed. Therefore, periodically delete work folders. When you delete work folders, determine the deletion start date and time and the number days, considering the execution period of business processes.
-
Before you execute the command, stop the reception that manages work folders and the business processes which are invoked by that reception.
-
Specify the date and time for the execution environment in the deletion start date and time.
-
Before you execute this command, make sure that required directories and files do not exist in the work folder.