Administrator's Reference

QUERY SCHEDULE (Query One or More Schedules)

Use the QUERY SCHEDULE command to display information pertaining to one or more schedules.

The QUERY 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.

Privilege Class

Any administrator can issue this command.

Syntax for Querying Client Schedules

                    .-*--*--------------------------.
>>-Query SCHedule---+-------------------------------+----------->
                    |             .-*------------.  |
                    '-domainname--+--------------+--'
                                  '-schedulename-'
 
     .-Type--=--Client--.
>----+------------------+--+----------------------------+------->
                           |           .-,-----------.  |
                           |           V             |  |
                           '-Nodes--=-----nodename---+--'
 
    .-Format--=--Standard------.
>---+--------------------------+-------------------------------><
    '-Format--=--+-Standard-+--'
                 '-Detailed-'
 

Parameters for Querying Client Schedules

domainname

Specifies the name of the policy domain to which the schedule belongs. You can use a pattern-matching expression to specify this name. All matching policy domains are queried. The default queries all existing policy domains. If you specify a domain name, you do not have to specify a schedule name.

schedulename

Specifies the name of the schedule that belongs to the specified policy domain. You can use a pattern-matching expression to specify this name. All matching schedules are queried. The default value queries all existing schedules for a given domain. If you specify a schedule name, you must also specify a policy domain name.

Type=Client

Specifies that this command should query client schedules. This parameter is optional. The default value is CLIENT. Administrative command schedules are queried by specifying TYPE=ADMINISTRATIVE.

Nodes=nodename

Specifies that you want to restrict the schedules that are queried by defining one or more client nodes that are associated with the schedules to be displayed. This parameter is optional. You can use a pattern-matching expression to specify a name. All matching clients are queried. If you do not specify a client name, all schedules matching the DOMAINNAME and SCHEDULENAME parameters are displayed. You can specify more than one client node name by separating each name with a comma, with no intervening spaces.

Format=formatvalue

Specifies how the information is displayed. This parameter is optional. The default value is STANDARD. Possible values are:

Standard

Specifies that partial information is displayed for the specified schedules.

Detailed

Specifies that complete information is displayed for the specified schedules.

Syntax for Querying Administrative Command Schedules

                    .-*------------.
>>-Query SCHedule---+--------------+-Type--=--Administrative---->
                    '-schedulename-'
 
    .-Format--=--Standard------.
>---+--------------------------+-------------------------------><
    '-Format--=--+-Standard-+--'
                 '-Detailed-'
 

Parameters for Querying Administrative Command Schedules

schedulename

Specifies the name of the schedules to be queried. You can use a pattern-matching expression to specify this name. All matching schedules are queried. The default queries all existing schedules.

Type=Administrative

Specifies that the schedules to be queried are administrative schedules. This parameter is required.

Format=formatvalue

Specifies how the information is displayed. This parameter is optional. The default value is STANDARD. Possible values are:

Standard

Specifies that partial information is displayed for the specified schedules.

Detailed

Specifies that complete information is displayed for the specified schedules.

Examples

Task 1

Display all schedules that belong to the EMPLOYEE_RECORDS policy domain.

Command:
query schedule employee_records

Output:
 

+--------------------------------------------------------------------------------+
|Domain       * Schedule Name Action Start Date/Time Duration Period Day         |
|------------ - ------------  ----- ----------------- ------- ------ ---         |
|EMPLOYEE_RE-   WEEKLY_BACKUP Inc Bk 04/04/1997 23:00   4 H    1 W   Fri         |
|CORDS                                                                           |
+--------------------------------------------------------------------------------+

where:

Domain

Specifies the name of the policy domain to which the specified schedule belongs.

* (Asterisk)

Specifies whether the corresponding schedule has expired. If there is an asterisk in this column, the corresponding schedule has expired.

Schedule Name

Specifies the name of the schedule.

Action

Specifies the action that occurs when this schedule executes.

Start Date/Time

Specifies the initial starting date and time for this schedule.

Duration

Specifies the length of the startup window.

Period

Specifies the time between startup windows (assuming DAYOFWEEK=ANY).

Day

Specifies the day of the week on which the startup windows begin.

Task 2

Display, in detail, the administrative command schedule (BACKUP_BACKUPPOOL) defined to backup the primary storage pool BACKUPPOOL to the copy storage pool COPYSTG.

Command:
query schedule backup_backuppool type=administrative format=detailed

Output:
 

+--------------------------------------------------------------------------------+
|                 Schedule Name: BACKUP_BACKUPPOOL                               |
|                   Description:                                                 |
|                       Command: backup stgpool backuppool copystg               |
|                      Priority: 5                                               |
|               Start Date/Time: 05/30/1997 20:00:00                             |
|                      Duration: 1 Hour(s)                                       |
|                        Period: 2 Day(s)                                        |
|                   Day of Week: Any                                             |
|                    Expiration:                                                 |
|                       Active?: Yes                                             |
|Last Update by (administrator): ADMIN                                           |
|         Last Update Date/Time: 05/30/1997 14:03:30                             |
+--------------------------------------------------------------------------------+

where:

Schedule Name

Specifies the name of the schedule.

Description

Specifies the description of the schedule.

Command

Specifies the command that is scheduled.

Priority

Specifies the priority value for this schedule.

Start Date/Time

Specifies the initial starting date and time for this schedule.

Duration

Specifies the length of the startup window.

Period

Specifies the time between startup windows (assuming DAYOFWEEK=ANY).

Day of Week

Specifies the day of the week on which the startup windows begin.

Expiration

Specifies the date and time on which this schedule will no longer be used. If this column is blank, the schedule does not expire.

Active?

Specifies whether the schedule has been processed according to the time and date set for this schedule.

Last Update by (administrator)

Specifies the name of the administrator that most recently modified the schedule.

Last Update Date/Time

Specifies the last date and time the schedule was modified.

Related Commands

Table 155. Command Related to QUERY 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.
UPDATE SCHEDULE Changes the attributes of a schedule.


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