Administrator's Reference

UPDATE SCHEDULE (Update a Client or an Administrative Command Schedule)

Use the UPDATE SCHEDULE command to modify an existing schedule. The UPDATE SCHEDULE command takes two forms, depending on whether the schedule applies to client operations or administrative commands. The syntax and parameters for each form are defined separately.

Restrictions:

  1. Not all clients can run all scheduled operations, even though ADSM allows you to define the schedule on the server and associate it with the client. For example, a Windows 3.1 client cannot run a schedule when the action is to restore or retrieve files, issue a command, or run an executable script (called a macro by ADSM). An executable script is also known as a command file, a batch file, or a script on different client operating systems. A Macintosh client cannot run a schedule when the action is to restore or retrieve files, or run an executable script.

  2. You cannot schedule MACRO or QUERY ACTLOG commands.

Updating Client Schedules: Use the UPDATE SCHEDULE command to modify selected parameters for the specified schedule. If you do not explicitly update a parameter, it remains unchanged.

This command does not change the client associations that have been made to this schedule. Any clients that are associated with the original schedule execute the modified schedule.

A schedule determines:

For each schedule, a startup window is specified. The startup window is the time period within which the scheduled operation must begin execution. The operation does not necessarily complete execution within this window. If the operation needs to be retried for any reason, the retry attempt must begin before the startup window elapses, or the operation is not retried.

Privilege Class

To update a client schedule, you must have system privilege, unrestricted policy privilege, or restricted policy privilege for the policy domain to which the schedule belongs. To update an administrative schedule, you must have system privilege.

Syntax for Updating Client Schedules

                    (1)
>>-UPDate SCHedule-------domainname--schedulename--------------->
 
    .-Type--=--Client--.
>---+------------------+--+------------------------------+------>
                          '-DESCription--=--description--'
 
>---+-----------------------------+----------------------------->
    '-ACTion--=--+-Incremental-+--'
                 +-Selective---+
                 +-Archive-----+
                 +-REStore-----+
                 +-RETrieve----+
                 +-Command-----+
                 '-Macro-------'
 
>---+---------------------------+------------------------------->
    '-OPTions--=--optionstring--'
 
>---+---------------------------+------------------------------->
    '-OBJects--=--objectstring--'
 
>---+-----------------------------+----------------------------->
    '-PRIority--=--priorityvalue--'
 
>---+--------------------------+--+--------------------------+-->
    '-STARTDate--=--startdate--'  '-STARTTime--=--starttime--'
 
>---+-----------------------------+----------------------------->
    '-DURation--=--durationvalue--'
 
>---+------------------------------+---------------------------->
    '-DURUnits--=--+-Minutes----+--'
                   +-Hours------+
                   +-Days-------+
                   '-INDefinite-'
 
>---+-------------------------+--+---------------------------+-->
    '-PERiod--=--periodvalue--'  '-PERUnits--=--+-Hours---+--'
                                                +-Days----+
                                                +-Weeks---+
                                                +-Months--+
                                                +-Years---+
                                                '-Onetime-'
 
>---+------------------------------+---------------------------->
    '-DAYofweek--=--+-ANY-------+--'
                    +-WEEKDay---+
                    +-WEEKEnd---+
                    +-SUnday----+
                    +-Monday----+
                    +-TUesday---+
                    +-Wednesday-+
                    +-THursday--+
                    +-Friday----+
                    '-SAturday--'
 
>---+----------------------------------+-----------------------><
    '-EXPiration=--+-Never----------+--'
                   '-expirationdate-'
 

1

You must specify at least one optional parameter on this command.

Parameters for Updating Client Schedules

domainname

Specifies the name of the policy domain to which this schedule belongs. This parameter is required.

schedulename

Specifies the name of the schedule to be updated. This parameter is required.

Type=Client

Specifies that this schedule updates a client schedule. This parameter is optional. The default value is CLIENT. Administrative command schedules are updated by specifying TYPE=ADMINISTRATIVE.

DESCription=description

Specifies a description of the schedule. This parameter is optional. The maximum length of the description is 255 characters. The description must be enclosed in quotation marks if it contains any blank characters. To remove a previously defined description, specify a null string ("") for this value.

ACTion=actionvalue

Specifies the action that occurs when this schedule is executed. This parameter is optional. Possible values are:

Incremental

Specifies that you want this schedule to initiate the backup of any files that have changed since the last backup and for which the specified time between backups has elapsed.

Selective

Specifies that you want this schedule to back up only the files specified with the OBJECTS parameter.

Archive

Specifies that you want to archive the files specified with the OBJECTS parameter.

REStore

Specifies that you want this schedule to restore the files specified with the OBJECTS parameter.

RETrieve

Specifies that you want this schedule to retrieve the files specified with the OBJECTS parameter.

Command

Specifies that the action is to be a client operating system command string specified with the OBJECTS parameter.

Macro

Specifies that a macro whose file name is specified with the OBJECTS parameter is to be executed.

OPTions=optionstring

Specifies options that are supplied to the DSMC command at the time the schedule is executed. Only those options that are valid on the DSMC command line may be specified for this parameter. Refer to the appropriate client manual for information on which options are valid from the command line. This parameter is optional.

You can specify most options from the client's option file. The option string must be enclosed in quotation marks if it contains any blank characters. When applicable, these options override the options specified by a client after it has successfully contacted the server.

Do not include the following options because they have no effect on the client's execution of the scheduled command:

MAXCMDRETRIES
QUERYSCHEDPERIOD
RETRYPERIOD
SCHEDLOGNAME
SCHEDMODE
TCPCLIENTADDRESS
TCPCLIENTPORT

OBJects=objectstring

Specifies the objects for which the specified action is performed. This parameter is optional. The allowed objects depend on the action you specify with the ACTION parameter and the operating system used by the clients associated with the schedule. To select all filespaces or drives, explicitly list them in the objectstring. Entering an asterisk will cause backup to only occur for the directory where the scheduler was started.

When you specify ACTION=INCREMENTAL and do not specify any objects with this parameter, the DSMC command is invoked without specified objects and attempts to process objects as defined in the client's option file.

You can specify more than one object by separating the objects with commas, with no intervening spaces. If the value for this parameter contains any blank characters or a string of file names, it must be enclosed in quotation marks. If multiple file names are specified, each must be surrounded by its own pair of double quotes, with one pair of single quotes surrounding the file list. For example, to specify the following file strings:

PRiority=priorityvalue

Specifies the priority value for a schedule. This parameter is optional. You can specify an integer from 1-10, inclusive, with 1 being the highest priority and 10 being the lowest.

If two or more schedules for a given client have the same window start time, this value determines the order of execution. The schedule with the highest priority starts first. For example, a schedule with PRIORITY=3 starts before a schedule with PRIORITY=5.

STARTDate=startdate

Specifies the date for the beginning of the window in which the schedule is first executed. This parameter is optional. This parameter is used in conjunction with the STARTTIME parameter to specify when the initial startup window begins.

Possible values are:

MM/DD/YYYY

Specifies the date for the beginning of the startup window in MM/DD/YYYY format (for example, 01/31/1997).

TODAY

Specifies that the beginning of the startup window is on the current date.

TODAY+numdays or +numdays

Specifies that the beginning of the startup window is a specific number of days after the current date. The maximum value for the number of days is 9999.

For example, to specify that the beginning of the initial startup window is 3 days from now, you can specify STARTDATE=TODAY+3 or STARTDATE=+3.

STARTTime=starttime

Specifies the time for the beginning of the window in which the schedule is first executed, in HH:MM format. This parameter is optional. This parameter is used in conjunction with the STARTDATE parameter to specify when the startup window begins.

Possible values are:

HH:MM:SS

Specifies the time for the beginning of the startup window in HH:MM:SS format (for example, 12:33:28).

NOW

Specifies that the beginning of the startup window is at the current time on the specified start date.

NOW+numhours:numminutes or +numhours:numminutes

Specifies the time for the beginning of the startup window is the current time plus a specific number of hours (and, optionally, minutes) on the specified start date.

For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW+02:00 or STARTTIME=+02:00, the beginning of the initial startup window is at 7:00.

NOW-numhours:numminutes or -numhours:numminutes

Specifies the time for the beginning of the startup window is at the current time minus a specific number of hours (and, optionally, minutes) on the specified start date.

For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW-02:00 or STARTTIME=-02:00, the beginning of the initial startup window is at 3:00.

DURation=durationvalue

Specifies the number of units that define the length of the startup window. This parameter is optional. You can specify an integer from 1-999, inclusive.

This parameter is used in conjunction with the DURUNITS parameter to specify the length of the startup window. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The duration of the window must be shorter than the period between windows.

This value is ignored if you specify DURUNITS=INDEFINITE.

DURUnits=durunitsvalue

Specifies the time units used to determine the duration of the window in which this schedule can start. This parameter is optional.

This parameter is used in conjunction with the DURATION parameter to specify how long the startup window remains open to execute 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 duration of the window must be shorter than the period between windows. Possible values are:

Minutes

Specifies that the duration of the window is defined in minutes.

Hours

Specifies that the duration of the window is defined in hours.

Days

Specifies that the duration of the window is defined in days.

INDefinite

Specifies that the startup window has an indefinite duration. The schedule can run any time after the scheduled start time, until the schedule expires. You cannot specify DURUNITS=INDEFINITE unless PERUNITS=ONETIME is also specified for the schedule.

PERiod=periodvalue

Specifies the length of time between startup windows for this schedule. This parameter is optional. You can specify an integer from 1-999, inclusive.

This parameter is used in conjunction 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 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window.

This value is ignored if you specify PERUNITS=ONETIME.

PERUnits=perunitsvalue

Specifies the time units used to determine the period between startup windows for this schedule. This parameter is optional.

This parameter is used in conjunction with the PERIOD parameter to specify the period between startup windows. For example, if PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the period between startup windows is scheduled every 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window. Possible values are:

Hours

Specifies that time between startup windows for the schedule is specified in hours.

Days

Specifies that time between startup windows for the schedule is specified in days.

Weeks

Specifies that time between startup windows for the schedule is specified in weeks.

Months

Specifies that time between startup windows for the schedule is specified in months.

Years

Specifies that time between startup windows for the schedule is specified in years.

Onetime

Specifies that the schedule executes only once. This value overrides the value specified by the PERIOD parameter.

DAYofweek=dayofweekvalue

Specifies the day of the week on which the startup window begins. If the beginning of the calculated startup window falls on a day that does not correspond with your value for the DAYOFWEEK parameter, the startup window will be shifted forward in 24-hour increments until the DAYOFWEEK parameter is satisfied.

If you select a value for DAYOFWEEK other than ANY, and depending on the values for PERIOD and PERUNITS, schedules may not be executed when you would expect. Use the QUERY EVENT command to project when schedules will be executed and thereby ensure that the desired result is achieved.

Possible values are:

ANY

Specifies that the startup window can begin on any day of the week.

WEEKDay

Specifies that the startup window can begin on Monday, Tuesday, Wednesday, Thursday, or Friday.

WEEKEnd

Specifies that the startup window can begin on Saturday or Sunday.

SUnday

Specifies that the startup window begins on Sunday.

Monday

Specifies that the startup window begins on Monday.

TUesday

Specifies that the startup window begins on Tuesday.

Wednesday

Specifies that the startup window begins on Wednesday.

THursday

Specifies that the startup window begins on Thursday.

Friday

Specifies that the startup window begins on Friday.

SAturday

Specifies that the startup window begins on Saturday.

EXPiration=expirationdate

Specifies the date on which this schedule will no longer be used, in MM/DD/YYYY format. This parameter is optional. Possible values are:

Never

Specifies that the schedule never expires.

expirationdate

Specifies the date on which the schedule will no longer be used, in MM/DD/YYYY format. If you specify an expiration date, the schedule expires at 23:59:59 on the specified date.

Updating Administrative Schedules: Use the UPDATE SCHEDULE command to modify selected parameters for the specified schedule. If you do not explicitly update a parameter, it remains unchanged.

For each schedule, a startup window is specified. The startup window is the time period during which the schedule must be initiated. The schedule will not necessarily complete execution within this window. If the server is not running when this window starts but is started before the end of the defined window is reached, the schedule will run when the server is restarted.

Syntax for Updating Administrative Command Schedules

                    (1)
>>-UPDate SCHedule-------schedulename--Type--=--Administrative-->
 
>---+------------------------+--+---------------------+--------->
    '-CMD--=--commandstring--'  '-ACTIVE--=--+-Yes-+--'
                                             '-No--'
 
>---+------------------------------+---------------------------->
    '-DESCription--=--description--'
 
>---+-----------------------------+----------------------------->
    '-PRIority--=--priorityvalue--'
 
>---+--------------------------+--+--------------------------+-->
    '-STARTDate--=--startdate--'  '-STARTTime--=--starttime--'
 
>---+-----------------------------+----------------------------->
    '-DURation--=--durationvalue--'
 
>---+------------------------------+---------------------------->
    '-DURUnits--=--+-Minutes----+--'
                   +-Hours------+
                   +-Days-------+
                   '-INDefinite-'
 
>---+-------------------------+--+---------------------------+-->
    '-PERiod--=--periodvalue--'  '-PERUnits--=--+-Hours---+--'
                                                +-Days----+
                                                +-Weeks---+
                                                +-Months--+
                                                +-Years---+
                                                '-Onetime-'
 
>---+------------------------------+---------------------------->
    '-DAYofweek--=--+-ANY-------+--'
                    +-WEEKDay---+
                    +-WEEKEnd---+
                    +-SUnday----+
                    +-Monday----+
                    +-TUesday---+
                    +-Wednesday-+
                    +-THursday--+
                    +-Friday----+
                    '-SAturday--'
 
>---+----------------------------------+-----------------------><
    '-EXPiration=--+-Never----------+--'
                   '-expirationdate-'
 

1

You must specify at least one optional parameter on this command.

Parameters for Updating Administrative Command Schedules

schedulename

Specifies the name of the schedule to be updated. This parameter is required.

Type=Administrative

Specifies that the schedule to be updated is an administrative schedule. This parameter is required for updating administrative command schedules.

CMD=commandstring

Specifies the actual administrative command that is to be scheduled. This parameter is optional. The maximum length of the command is 512 characters. The administrative command must be enclosed in quotation marks if it contains any blank characters.
Note:Redirection characters cannot be specified with this parameter.

ACTIVE=activevalue

Specifies whether the defined administrative command is eligible for scheduled execution. This parameter is optional. A defined administrative command schedule will not be executed unless it is set into the active state. Possible values are:

YES

Specifies that the defined administrative command is eligible for scheduled execution.

NO

Specifies that the defined administrative command is not eligible for scheduled execution.

DESCription=description

Specifies a description of the schedule. This parameter is optional. The maximum length of the description is 255 characters. The description must be enclosed in quotation marks if it contains any blank characters. To remove a previously defined description, specify a null string ("") for this value.

PRiority=priorityvalue

Specifies the priority value for a schedule. This parameter is optional. You can specify an integer from 1-10, inclusive, with 1 being the highest priority and 10 being the lowest.

If two or more schedules for a given client have the same window start time, this value determines the order of execution. The schedule with the highest priority starts first. For example, a schedule with PRIORITY=3 starts before a schedule with PRIORITY=5.

STARTDate=startdate

Specifies the date for the beginning of the window in which the schedule is first executed. This parameter is optional. This parameter is used in conjunction with the STARTTIME parameter to specify when the initial startup window begins.

Possible values are:

MM/DD/YYYY

Specifies the date for the beginning of the startup window in MM/DD/YYYY format (for example, 01/31/1997).

TODAY

Specifies that the beginning of the startup window is on the current date.

TODAY+numdays or +numdays

Specifies that the beginning of the startup window is a specific number of days after the current date. The maximum value for the number of days is 9999.

For example, to specify that the beginning of the initial startup window is 3 days from now, you can specify STARTDATE=TODAY+3 or STARTDATE=+3.

STARTTime=starttime

Specifies the time for the beginning of the window in which the schedule is first executed, in HH:MM format. This parameter is optional. This parameter is used in conjunction with the STARTDATE parameter to specify when the startup window begins.

Possible values are:

HH:MM:SS

Specifies the time for the beginning of the startup window in HH:MM:SS format (for example, 12:33:28).

NOW

Specifies that the beginning of the startup window is at the current time on the specified start date.

NOW+numhours:numminutes or +numhours:numminutes

Specifies the time for the beginning of the startup window is the current time plus a specific number of hours (and, optionally, minutes) on the specified start date.

For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW+02:00 or STARTTIME=+02:00, the beginning of the initial startup window is at 7:00.

NOW-numhours:numminutes or -numhours:numminutes

Specifies the time for the beginning of the startup window is at the current time minus a specific number of hours (and, optionally, minutes) on the specified start date.

For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW-02:00 or STARTTIME=-02:00, the beginning of the initial startup window is at 3:00.

DURation=durationvalue

Specifies the number of units that define the length of the startup window. This parameter is optional. You can specify an integer in the range of 1-999, inclusive.

This parameter is used in conjunction with the DURUNITS parameter to specify the length of the startup window. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The duration of the window must be shorter than the period between windows.

This value is ignored if you specify DURUNITS=INDEFINITE.

DURUnits=durunitsvalue

Specifies the time units used to determine the duration of the window in which this schedule can start. This parameter is optional.

This parameter is used in conjunction with the DURATION parameter to specify how long the startup window remains open to execute 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 duration of the window must be shorter than the period between windows. Possible values are:

Minutes

Specifies that the duration of the window is defined in minutes.

Hours

Specifies that the duration of the window is defined in hours.

Days

Specifies that the duration of the window is defined in days.

INDefinite

Specifies that the startup window has an indefinite duration. The schedule can run any time after the scheduled start time, until the schedule expires. You cannot specify DURUNITS=INDEFINITE unless PERUNITS=ONETIME is also specified for the schedule.

PERiod=periodvalue

Specifies the length of time between startup windows for this schedule. This parameter is optional. You can specify an integer in the range of 1-999, inclusive.

This parameter is used in conjunction 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 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window.

This value is ignored if you specify PERUNITS=ONETIME.

PERUnits=perunitsvalue

Specifies the time units used to determine the period between startup windows for this schedule. This parameter is optional.

This parameter is used in conjunction with the PERIOD parameter to specify the period between startup windows. For example, if PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the period between startup windows is scheduled every 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window. Possible values are:

Hours

Specifies that time between startup windows for the schedule is specified in hours.

Days

Specifies that time between startup windows for the schedule is specified in days.

Weeks

Specifies that time between startup windows for the schedule is specified in weeks.

Months

Specifies that time between startup windows for the schedule is specified in months.

Years

Specifies that time between startup windows for the schedule is specified in years.

Onetime

Specifies that the schedule executes only once. This value overrides the value specified by the PERIOD parameter.

DAYofweek=dayofweekvalue

Specifies the day of the week on which the startup window begins. If the beginning of the calculated startup window falls on a day that does not correspond with your value for the DAYOFWEEK parameter, the startup window will be shifted forward in 24-hour increments until the DAYOFWEEK parameter is satisfied.

If you select a value for DAYOFWEEK other than ANY, depending on the values for PERIOD and PERUNITS, schedules may not be executed when you would expect. Use the QUERY EVENT command to project when schedules will be executed and thereby ensure that the desired result is achieved. Possible values are:

ANY

Specifies that the startup window can begin on any day of the week.

WEEKDay

Specifies that the startup window can begin on Monday, Tuesday, Wednesday, Thursday, or Friday.

WEEKEnd

Specifies that the startup window can begin on Saturday or Sunday.

SUnday

Specifies that the startup window begins on Sunday.

Monday

Specifies that the startup window begins on Monday.

TUesday

Specifies that the startup window begins on Tuesday.

Wednesday

Specifies that the startup window begins on Wednesday.

THursday

Specifies that the startup window begins on Thursday.

Friday

Specifies that the startup window begins on Friday.

SAturday

Specifies that the startup window begins on Saturday.

EXPiration=expirationdate

Specifies the date on which this schedule will no longer be used, in MM/DD/YYYY format. This parameter is optional. Possible values are:

Never

Specifies that the schedule never expires.

expirationdate

Specifies the date on which the schedule will no longer be used, in MM/DD/YYYY format. If you specify an expiration date, the schedule expires at 23:59:59 on the specified date.

Examples

Task 1

Update the MONTHLY_BACKUP schedule that belongs to the STANDARD policy domain by setting its priority value to 1.

Command:
update schedule standard monthly_backup priority=1

Task 2

Update the WEEKLY_BACKUP schedule that belongs to the EMPLOYEE_RECORDS policy domain to expire on March 29, 1997 (03/29/1997).

Command:
update schedule employee_records weekly_backup expiration=05/29/1997

Task 3

Update existing administrative schedule named BACKUP_BACKUPPOOL so that starting today, the BACKUPPOOL primary storage pool is backed up to the COPYSTG copy storage pool every three days at 10:00 p.m.

Command:
update schedule backup_backuppool type=administrative cmd="backup stgpool backuppool copystg" active=yes starttime=22:00 period=3

Related Commands

Table 246. Commands Related to UPDATE SCHEDULE
Command Description
COPY SCHEDULE Creates a copy of an existing schedule.
DEFINE SCHEDULE Defines a schedule for a client operation or an administrative command.
DELETE SCHEDULE Deletes a schedule from the database.
QUERY EVENT Displays information about scheduled and completed events for selected clients.
QUERY SCHEDULE Displays information about one or more schedules.
SET MAXCMDRETRIES Specifies the maximum number of retries after a failed attempt to execute a scheduled command.
SET MAXSCHEDSESSIONS Specifies the maximum number of client/server sessions available for processing scheduled work.
SET RETRYPERIOD Specifies the time between retry attempts by the client scheduler.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]