Send and Receive Log Deletion command

The Send and Receive Log files store one log record of data for each file transfer (sending or receiving). The unnecessary data should be regularly deleted.

Format of 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

You can omit this parameter only when -i is specified.

-id fileID

File ID whose records are to be deleted (Optional)

Specify a string of alphanumeric characters (and "_" if desired) that is 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 files with the file ID are targeted.

-h hostname

Host name whose records are 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 range for log records to be deleted (Optional)

Specify a numeric string within 8 bytes.

The date should be specified in the date 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 the targets for deletion.

When '-from' is omitted, all the dates up to the date specified in '-to' become targets.

When '-to' is omitted, all the dates on and after the date that is specified in '-from' become targets.

When both are omitted, all the dates become targets.

HULFT searches the start dates of sending or receiving.

-i

Interactive mode (Optional)

Enter the file ID, host name, and range of 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.' Logs for the specified number of days from the past to the current date are kept, and the rest of the logs are deleted.

-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, among the date related parameters.

Input example of interactive mode

  • Specification of Send or Receive

    When you omit the parameter that indicates the send and receive type ({-s|-r|-a}) and run the command, the following message appears:

    Please select number 
    1:Delete Receive information 
    2:Delete Send information 
    3:Delete Receive & Send information 
    9:quit.
    

    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 run the command with the parameter for Send or Receive ({-s|-r|-a}) specified, HULFT starts the processing from the first log record of the next file ID.

    When you run the command while the file ID of the deletion target is omitted, enter the file ID of the deletion target when the following messages appear:

    Please input file ID. (Default is all) 
    >File ID
    

    Press only the Enter key to omit.

    When the parameter is not specified, all the file IDs will be targeted for deletion.

  • Input of host name

    When you run the command with the host name of the deletion target omitted, enter the host name of the deletion target when the following messages appear:

    Please input hostname. (Default is all) 
    >Host Name
    

    Press only the Enter key to omit.

    When the parameter is not specified, all host names are targeted for deletion.

  • Input of date range

    When you run the command with the date range of the deletion target omitted, enter the date range of the deletion target when the following messages appear:

    from (Default is oldest) 
    >Date (YYYYMMDD) 
    to (Default is latest) 
    >Date (YYYYMMDD)
    

    = Remarks =

    The date format varies depending on Date Format that is specified in the System Environment Settings. For details, refer to the following:

    HULFT10 for Linux/AIX Administration Manual : Global Settings

    Press only the Enter key to omit.

    When the parameter is not specified, all the dates become deletion target.

     

    If the file ID, host name, and date range are correctly entered, the following confirmation message appears:

    Sure ? (y/n)

    To perform the deletion, enter 'Y' or 'y.'

    To stop the deletion, enter 'N' or 'n.'

    If the specified data doesn't exist in the Send Log file and the Receive Log file, the message will not be output.