Send and Receive Log Deletion command
Every time sending or receiving of a file is carried out, the Send Log file and the Receive Log file store a log record. Delete unnecessary data at regular intervals.
Syntax for the Send and Receive Log Deletion command
utllog {-s|-r|-a} [-id fileid] [-h hostname] [[-from Date1] [-to Date2] [-i]|-day n|-lastweek|-lastmonth]
Explanation of the parameters
- -s|-r|-a
-
Type of log file whose records are to be deleted (Mandatory)
- -s:
-
Send Log
- -r:
-
Receive Log
- -a:
-
Send Log and Receive Log
It can be omitted only when -i is specified.
- -id fileid
-
File ID to be deleted (Optional)
Specify an alphanumeric character string within 50 bytes.
To delete Send Log records or Receive Log records for instant transfer, specify "-id _INSTANT_TRANSFER_" for the file ID.
If omitted, all the file IDs are targeted.
- -h hostname
-
Host name to be deleted (Optional)
Specify the host name as an alphanumeric character string within 68 bytes.
If omitted, all the host names are targeted.
- -from Date1 -to Date2
-
Date of deletion (Optional)
Specify this parameter in a numeric string within 8 bytes.
Specify the date in the format that is specified for Date Format (datefmt) in the System Environment Settings.
It is necessary to specify the date in the range of Date1<=Date2. The specified Date1 and Date2 also become targets for deletion.
When '-from' is omitted, all the dates up to the date specified in '-to' will be displayed.
When '-to' is omitted, all the dates from the date that is specified in '-from' will be displayed.
When both are omitted, all the dates will be displayed.
HULFT searches the start dates of sending or receiving.
- -i
-
Interactive mode (Optional)
Enter the range of file IDs, host names, and dates as instructed by the message that appears.
- -day n
-
Number of days that are not targeted for deletion (Optional)
Specify the value within a range from '1' to '366.' HULFT will keep the log records within the range of the specified number of days from the current day, and will delete the rest.
- -lastweek
-
Log deletion up to the previous week (Optional)
Log records up to the Saturday of the previous week are deleted (log records of the Saturday of the previous week are included in the deletion).
- -lastmonth
-
Log deletion up to the previous month (Optional)
Log records up to the end of the previous month are deleted (log records of the last day of the previous month are included in the deletion).
Note
Confirm that there is sufficient disk space before you delete log records.
Remarks
-
Multiple specifications of date related parameters are not possible. Specify one of the following parameters:
-
-from and -to
-
-day
-
-lastweek
-
-lastmonth
-
-
You can use interactive mode (-i) only when you specify the parameter -from or -to in the date related parameters.
<Input example of interactive mode>
Specification of Send and Receive type
When you omit the parameter that indicates the send and receive type ({-s|-r|-a}) and run the command, the following message appears:
Select number 1:Delete receive log. 2:Delete send log. 3:Delete receive and send log. 9:Close >
To delete a record in the Receive Log, enter '1.'
To delete a record in the Send Log, enter '2.'
To delete log records in the Receive Log and in the Send Log at the same time, enter '3.'
To stop the deletion, enter '9.'
Input of file ID
When you specify the parameters that indicate the Send and Receive type ({-s|-r|-a}) and run the command, HULFT starts the processing from the entry of the next file ID.
If you omit the file ID of the deletion target and run the command, enter the file ID of the deletion target when the following message appears:
File ID >
To omit the parameter, press only the Enter key.
When this parameter is not specified, all the file IDs will be targeted for deletion.
Input of host name
When you omit the host name of the deletion target and run the command, enter the host name of the deletion target when the following message appears:
Host Name >
To omit the parameter, press only the Enter key.
When you omit the parameter, all the host names will be targeted for deletion.
Input of date range
If you omit the date range of the deletion target and run the command, enter the date range of the deletion target when the following message appears:
Start dates to be deleted.(Date) > Close dates to be deleted.(Date) >
The date format varies depending on Date Format (datefmt) that is specified in the System Environment Settings. For details, refer to Administration Manual.
To omit the parameter, press only the Enter key.
When you omit the parameter, all the dates will be targeted for deletion.
If the file ID, host name, and date range are correctly entered, the following confirmation message appears:
Is this correct? (y/n) >
To perform the deletion, enter 'Y' or 'y.'
To stop the deletion, enter 'N' or 'n.'
If the specified log data does not exist in the Send Log file or the Receive Log file, the following message appears:
utllog: No target data.