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, or the like is acknowledged. The unnecessary data should be regularly deleted.
Syntax for the Observe Log Delete command
utlobsrm {-s service|-a} [[-from Date1] [-to Date2] [-i]| -day n|-lastweek|-lastmonth]
Explanation of the parameters
- -s service|-a
-
Name of service targeted for deletion (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 service names, refer to Administration Manual.
- -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.
- -i
-
Interactive mode (Optional)
Enter the service 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 parameters regarding dates.
<Input example of Interactive mode>
Input of service name
When you omitted the target service name to be deleted to start, enter the service name to be deleted as the following message appears:
Please input service name.(Default is all) >Service Name
Press only the Enter key to omit.
When the parameter is omitted, all the service names become the target of deletion.
Input of date range
When you omit the date unit to be deleted to start, enter the date range to be deleted as the following messages appear:
From (Default is oldest) >Date (YYYYMMDD) To (Default is latest) >Date (YYYYMMDD)
The date format varies depending on Date Format that is specified in the System Environment Settings. For details, refer to Administration Manual.
solveri2% utlobsrm -s SEND -i from (Default is oldest)> to (Default is latest)> Sure ? (y/n)
To perform the deletion, enter 'Y' or 'y.'
To stop the deletion, enter 'N' or 'n.'