Use the QUERY EVENT command to display scheduled and completed events for selected administrative command schedules.
Any administrator can issue this command.
>>-Query EVent--schedule_name--Type--=--Administrative----------> .-BEGINDate--=--current_date-. .-BEGINTime--=--00:00-. >--+----------------------------+--+---------------------+------> '-BEGINDate--=--date---------' '-BEGINTime--=--time--' .-ENDDate--=--begin_date-. .-ENDTime--=--23:59-. >--+------------------------+--+-------------------+------------> '-ENDDate--=--date-------' '-ENDTime--=--time--' .-EXceptionsonly--=--No------. >--+----------------------------+-------------------------------> '-EXceptionsonly--=--+-No--+-' '-Yes-' .-Format--=--Standard-----. >--+-------------------------+--------------------------------->< '-Format--=--+-Standard-+-' '-Detailed-'
| Value | Description | Example |
|---|---|---|
| MM/DD/YYYY | A specific date | 09/15/1998 |
| TODAY | The current date | TODAY |
| TODAY+days or +days | The current date plus days specified. The maximum number of days you can specify is 9999. | TODAY +3 or +3. |
| TODAY-days or -days | The current date minus days specified | TODAY-7 or -7. To query events scheduled to start during the past seven days, specify BEGINDATE=TODAY-7 ENDDATE=TODAY or BEGINDATE=-7 ENDDATE=TODAY. |
| 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. |
| Value | Description | Example |
|---|---|---|
| HH:MM:SS | A specific time on the specified begin date | 10:30:08 |
| NOW | The current time on the specified begin date | NOW |
| NOW+HH:MM or +HH:MM | The current time plus hours and minutes on the specified begin date | NOW+03:00 or +03:00. If you issue this command at 9:00 to query events scheduled to start 3 hours from now, you can specify either BEGINTIME=NOW+03:00 or BEGINTIME=+03:00. Tivoli® Storage Manager displays events at 12:00 on the specified begin date. |
| NOW-HH:MM or -HH:MM | The current time minus hours and minutes on the specified begin date | NOW-04:00 or -04:00. If you issue this command at 9:00 to query events scheduled to start during the last 4 hours, you can specify either BEGINTIME=NOW-04:00 ENDTIME=NOW or BEGINTIME=-04:00 ENDTIME=NOW. Tivoli Storage Manager displays events at 5:00 on the specified begin date. |
| Value | Description | Example |
|---|---|---|
| MM/DD/YYYY | A specific date | 09/15/1998 |
| TODAY | The current date | TODAY |
| TODAY+days or +days | The current date plus days specified. The maximum number of days you can specify is 9999. | TODAY +3 or +3. |
| TODAY-days or -days | The current date minus days specified | TODAY–8 or –8. To query events scheduled to start during a one-week period that ended yesterday, you can specify either BEGINDATE=TODAY-8 ENDDATE=TODAY-1 or BEGINDATE=-8 ENDDATE=-1. |
| 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. |
| Value | Description | Example |
|---|---|---|
| HH:MM:SS | A specific time on the specified end date | 10:30:08 |
| NOW | The current time on the specified end date | NOW |
| NOW+HH:MM or +HH:MM | The current time plus hours and minutes on the specified end date | NOW+03:00 or +03:00. If you issue this command at 9:00 to query events scheduled to start 3 hours from now, you can specify either BEGINTIME=NOW ENDTIME=NOW+03:00 or BEGINTIME=NOW ENDTIME=+03:00. |
| NOW-HH:MM or -HH:MM | The current time minus hours and minutes on the specified end date | NOW-04:00 or -04:00 |
query event dosadmin type=administrative
begindate=03/30/1999
enddate=03/30/1999
Scheduled Start Actual Start Schedule Status
Name
-------------------- -------------------- --------- ---------
03/30/1999 00:00:00 03/30/1999 00:00:01 DOSADMIN Completed
03/30/1999 04:00:00 03/30/1999 04:00:01 DOSADMIN Completed
03/30/1999 12:00:00 DOSADMIN Future
03/30/1999 16:00:00 DOSADMIN Future
For administrative commands or scripts that specify WAIT=NO, the status of a scheduled event is COMPLETED if the scheduled command or script started. The success of the schedule is independent of the success of the operation performed by the command or script.