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.