Use this command to update selected parameters for an administrative command schedule.
You cannot schedule MACRO or QUERY ACTLOG commands.
A managed administrative schedule that is updated by a configuration manager is set to an inactive state on the managed servers during configuration refresh processing. It remains in an inactive state until it is updated to an active state on those servers.
To update an administrative schedule, you must have system privilege.
Classic administrative schedule (1) >>-UPDate SCHedule--------schedule_name-------------------------> >--+-------------------------+--+-----------------+-------------> '-Type--=--Administrative-' '-CMD--=--command-' >--+--------------------+--+-----------------------------+------> '-ACTIVE--=--+-Yes-+-' '-DESCription--=--description-' '-No--' >--+---------------------+--+--------------------+--------------> '-PRIority--=--number-' '-STARTDate--=--date-' >--+--------------------+--+---------------------+--------------> '-STARTTime--=--time-' '-DURation--=--number-' >--+-----------------------------+------------------------------> '-DURUnits--=--+-Minutes----+-' +-Hours------+ +-Days-------+ '-INDefinite-' >--+------------------------+--+-------------------+------------> '-SCHEDStyle--=--Classic-' '-PERiod--=--number-' >--+--------------------------+---------------------------------> '-PERUnits--=--+-Hours---+-' +-Days----+ +-Weeks---+ +-Months--+ +-Years---+ '-Onetime-' >--+-----------------------------+------------------------------> '-DAYofweek--=--+-ANY-------+-' +-WEEKDay---+ +-WEEKEnd---+ +-SUnday----+ +-Monday----+ +-TUesday---+ +-Wednesday-+ +-THursday--+ +-Friday----+ '-SAturday--' >--+------------------------+---------------------------------->< '-EXPiration=--+-Never-+-' '-date--'
Enhanced administrative schedule (1) >>-UPDate SCHedule--------schedule_name-------------------------> >--+-------------------------+--+-----------------+-------------> '-Type--=--Administrative-' '-CMD--=--command-' >--+--------------------+--+-----------------------------+------> '-ACTIVE--=--+-Yes-+-' '-DESCription--=--description-' '-No--' >--+---------------------+--+--------------------+--------------> '-PRIority--=--number-' '-STARTDate--=--date-' >--+--------------------+--+---------------------+--------------> '-STARTTime--=--time-' '-DURation--=--number-' >--+--------------------------+--+-------------------------+----> '-DURUnits--=--+-Minutes-+-' '-SCHEDStyle--=--Enhanced-' +-Hours---+ '-Days----' >--+-------------------------+--+------------------------+------> '-MONth--=--+-ANY-------+-' '-DAYOFMonth--=--+-ANY-+-' +-JAnuary---+ '-Day-' +-February--+ +-MARch-----+ +-APril-----+ +-May-------+ +-JUNe------+ +-JULy------+ +-AUgust----+ +-September-+ +-October---+ +-November--+ '-December--' >--+----------------------------+-------------------------------> '-WEEKofmonth--=--+-ANY----+-' +-FIrst--+ +-Second-+ +-Third--+ +-FOurth-+ '-Last---' >--+-----------------------------+------------------------------> '-DAYofweek--=--+-ANY-------+-' +-WEEKDay---+ +-WEEKEnd---+ +-SUnday----+ +-Monday----+ +-TUesday---+ +-Wednesday-+ +-THursday--+ +-Friday----+ '-SAturday--' >--+------------------------+---------------------------------->< '-EXPiration=--+-Never-+-' '-date--'
You cannot specify redirection characters with this parameter.
If two or more schedules have the same window start time, the value you specify determines when Tivoli® Storage Manager processes the schedule. The schedule with the highest priority starts first. For example, a schedule with PRIORITY=3 starts before a schedule with PRIORITY=5.
| 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. |
| 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 | 10:30:08 |
| NOW | The current time | NOW |
| NOW+HH:MM or +HH:MM | The current time plus hours and minutes specified | NOW+02:00 or +02:00. If you issue this command at 5:00 with STARTTIME=NOW+02:00 or STARTTIME=+02:00, the beginning of the startup window is at 7:00. |
| NOW-HH:MM or -HH:MM | The current time minus hours and minutes specified | NOW-02:00 or –02:00. If you issue this command at 5:00 with STARTTIME=NOW–02:00 or STARTTIME=-02:00, the beginning of the startup window is at 3:00. |
Use this parameter with the DURUNITS parameter to specify the length of the startup window. For example, if you specify DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The default length of the startup window is 1 hour. The duration of the window must be shorter than the period between windows.
This value is ignored if you specify DURUNITS=INDEFINITE.
Use this parameter with the DURATION parameter to specify how long the startup window remains open to process the schedule. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The schedule may not necessarily complete processing within this window. If the schedule needs to be retried for any reason, the retry attempts must begin before the startup window elapses, or the operation does not restart.
For classic schedules, these parameters are allowed: PERIOD, PERUNITS, and DAYOFWEEK. These parameters are not allowed: MONTH, DAYOFMONTH, and WEEKOFMONTH. If the previous schedule style was enhanced, the MONTH, DAYOFMONTH, WEEKOFMONTH, and DAYOFWEEK parameters will be reset. DAYOFWEEK, PERIOD, and PERUNITS will be set to default values unless they are specified with the update command.
For enhanced schedules, these parameters are allowed: MONTH, DAYOFMONTH, WEEKOFMONTH, and DAYOFWEEK. These parameters are not allowed: PERIOD and PERUNITS. If the previous schedule style was classic, the DAYOFWEEK, PERIOD, and PERUNITS parameters will be reset. MONTH, DAYOFMONTH, WEEKOFMONTH, and DAYOFWEEK will be set to default values unless they are specified with the update command.
Use this parameter with the PERUNITS parameter to specify the period between startup windows. For example, if you specify PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the operation is scheduled every five days after the initial start date and start time. The period between startup windows must exceed the duration of each window. The default is 1 day.
This value is ignored if you specify PERUNITS=ONETIME.
When you specify PERUNITS=MONTHS, the scheduled operation will be processed each month on the same date. For example, if the start date for the scheduled operation is 02/04/1998, the schedule will process on the 4th of every month thereafter. However, if the date is not valid for the next month, then the scheduled operation will be processed on the last valid date in the month. Thereafter, subsequent operations are based on this new date. For example, if the start date is 03/31/1998, the next month's operation will be scheduled for 04/30/1998. Thereafter, all subsequent operations will be on the 30th of the month until February. Because February has only 28 days, the operation will be scheduled for 02/28/1999. Subsequent operations will be processed on the 28th of the month.
When you specify PERUNITS=YEARS, the scheduled operation will be processed on the same month and date of each year. For example, if the start date for the scheduled operation is 02/29/2004, the next year's scheduled operation will be 02/28/2005 because February only has 28 days. Thereafter, subsequent operations will be scheduled for February 28th.
If you select a value for DAYOFWEEK other than ANY, and depending on the values for PERIOD and PERUNITS, schedules may not be processed when you would expect. The default is ANY.
The default value is ANY, meaning the schedule will run every day of the week or on the day or days determined by other enhanced schedule parameters. DAYOFWEEK must have a value of ANY (either by default or specified with the command) when used with the DAYOFMONTH parameter.
The default value is ANY. This means the schedule will run on every day of the month or on the days determined by other enhanced schedule parameters. DAYOFMONTH must have a value of ANY (either by default or specified with the command) when used with the DAYOFWEEK or WEEKOFMONTH parameters.
The default value is ANY, meaning the schedule will run during every week of the month or on the day or days determined by other enhanced schedule parameters. WEEKOFMONTH must have a value of ANY (either by default or specified with the command) when used with the DAYOFMONTH parameter.
update schedule backup_backuppool type=administrative cmd="backup stgpool
backuppool copystg" active=yes starttime=22:00 period=3
update schedule backup_archivepool
dayofweek=friday weekofmonth=first,third
DAYOFMONTH will be reset to ANY.