IBM Tivoli Storage Manager, Version 7.1

DELETE EVENT (Delete event records)

Use this command to delete event records from the database. An event record is created whenever processing of a scheduled command is started or missed.

This command only deletes the event records that exist at the time the command is processed. An event record will not be found:
  • If the event record has never been created (the event is scheduled for the future)
  • If the event has passed and the event record has already been deleted.

Privilege class

To issue this command, you must have system privilege or unrestricted policy privilege.

Syntax

Read syntax diagramSkip visual syntax diagram
                       .-00:00-.   
>>-DELete EVent--date--+-------+-------------------------------->
                       '-time--'   

   .-TYPE--=--Client-------------.   
>--+-----------------------------+-----------------------------><
   '-TYPE--=--+-Client---------+-'   
              +-ADministrative-+     
              '-ALl------------'     

Parameters

date (Required)
Specifies the date used to determine which event records to delete. The maximum number of days you can specify is 9999.

Use this parameter in conjunction with the TIME parameter to specify a date and time for deleting event records. Any record whose scheduled start occurs before the specified date and time is deleted. However, records are not deleted for events whose startup window has not yet passed.

You can specify the date by using one of the following values:
Value Description Example
MM/DD/YYYY A specific date 09/15/1998
TODAY The current date TODAY
TODAY-days or -days The current date minus days specified TODAY-3 or -3.
EOLM (End Of Last Month) The last day of the previous month. EOLM
EOLM-days The last day of the previous month minus days specified. EOLM-1

To include files that were active a day before the last day of the previous month.

BOTM (Beginning Of This Month) The first day of the current month. BOTM
BOTM+days The first day of the current month, plus days specified. BOTM+9

To include files that were active on the 10th day of the current month.

time
Specifies the time used to determine which event records to delete. Use this parameter in conjunction with the DATE parameter to specify a date and time for deleting event records. Any record whose scheduled start occurs before the specified date and time is deleted. However, records are not deleted for events whose startup window has not yet passed. The default is 00:00.
You can specify the time by using one of the following values:
Value Description Example
HH:MM:SS A specific time 10:30:08
NOW The current time NOW
NOW+HH:MM or +HH:MM The current time plus hours and minutes specified NOW+03:00 or +03:00
Attention: If you issue this command at 9:00 using NOW+03:00 or +03:00, Tivoli® Storage Manager deletes records with a time of 12:00 or later on the date you specify.
NOW-HH:MM or -HH:MM The current time minus hours and minutes specified NOW-03:00 or –03:00
TYPE
Specifies the type of events to be deleted. This parameter is optional. The default is CLIENT. Possible values are:
Client
Specifies to delete event records for client schedules.
ADministrative
Specifies to delete event records for administrative command schedules.
ALl
Specifies to delete event records for both client and administrative command schedules.

Example: Delete event records

Delete records for events with scheduled start times prior to 08:00 on May 26, 1998 (05/26/1998), and whose startup window has passed. Records for these events are deleted regardless of whether the retention period for event records, as specified with the SET EVENTRETENTION command, has passed.
delete event 05/26/1998 08:00

Related commands

Table 1. Commands related to DELETE EVENT
Command Description
QUERY EVENT Displays information about scheduled and completed events for selected clients.
SET EVENTRETENTION Specifies the number of days to retain records for scheduled operations.


Feedback