Observe Log Delete command

A record of data is stored in the Observe Log each time the request of the Send Request, the Resend Request, and the like is acknowledged. Delete unnecessary data at regular intervals.

Format of command

utlobsrm {-s service|-a} [[-from Date1] [-to Date2] [-i]|
     -day n|-lastweek|-lastmonth]

Explanation of the parameters

-s service|-a

Name of the service whose log records are to be deleted (Mandatory)

Specify the name as an alphanumeric character string within 8 bytes.

-s service:

The log records of the service with the specified service name are deleted

-a:

The log records for all service names are deleted

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

= Remarks =

For details on the service names, refer to the following:

HULFT10 for Windows Administration Manual : Filter settings for log (message) output

-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.

-i

Interactive mode (Optional)

Enter the range of the service name and date according to the message displayed.

-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

  • Input of service name

    If you omit the service name of the log record to be deleted and run the command, enter the service name when the following message appears:

    Enter service name. 
    >
    

    To omit the parameter, press the Enter key.

    When this parameter is omitted, all the service names become the target of deletion.

  • Input of date range

    If you omit the date of the log records to be deleted and run the command, enter the date range when the following messages are displayed:

    Start dates to be deleted.(Date) 
    >
    Close dates to be deleted.(Date) 
    >
    

    = Remarks =

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

    HULFT10 for Windows Administration Manual : Global

    To omit the parameter, press the Enter key.

    If you omit this parameter, all the dates will be targeted for deletion.

     

    If the service name and date range are correctly entered, the following confirmation message is displayed:

    Is this correct? ( Y or N ) 
    >
    

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

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

    When the specified data is not present in the Observe Log file, the following message is displayed:

    utlobsrm: No target data.