Administrator's Reference

QUERY VOLHISTORY (Display Sequential Volume History Information)

Use the QUERY VOLHISTORY command to display sequential volume history information that has been collected by the server.

To save sequential volume history information collected by the server to one or more files, use the BACKUP VOLHISTORY command.

Privilege Class

Any administrator can issue this command.

Syntax

>>-Query VOLHistory---+----------------+--+--------------+------>
                      '-BEGINDate=date-'  '-ENDDate=date-'
 
>---+----------------+--+--------------+------------------------>
    '-BEGINTime=time-'  '-ENDTime=time-'
 
    .-Type--=--All------------.
>---+-------------------------+--------------------------------><
    '-Type--=--+-All-------+--'
               +-DBBackup--+
               +-DBDump----+
               +-EXPort----+
               +-STGNew----+
               +-STGReuse--+
               '-STGDelete-'
 

Parameters

BEGINDate=date

Specifies the beginning date for the history information to display. This parameter is optional. The default is the earliest date for which history information exists. Possible values are:

MM/DD/YYYY

Specifies that you want to display information beginning with records created on a specific date, using MM/DD/YYYY format (for example, 01/31/1995).

TODAY

Specifies that you want to display information beginning with records created on the current date.

TODAY-numdays or -numdays

Specifies that you want to display information beginning with records created on the current date minus a specific number of days. The maximum value for the number of days is 9999.

For example, to display information beginning with records created a week ago, you can specify TODAY-7 or simply -7.

ENDDate=date

Specifies the ending date for the history information to display. This parameter is optional. The default is the current date. Possible values are:

MM/DD/YYYY

Specifies that you want to display information ending with records created on a specific date, using MM/DD/YYYY format (for example 02/28/95).

TODAY

Specifies that you want to display information ending with records created on the current date.

TODAY-numdays or -numdays

Specifies that you want to display information ending with records created on or before the current date minus a specific number of days. The maximum value for the number of days is 9999.

For example, to display all volume history information created up to yesterday, you can specify TODAY-1 or simply -1.

BEGINTime=time

Specifies the beginning time for the history information to display. This parameter is optional. The default is midnight (00:00:00) on the date specified with the BEGINDATE parameter. Possible values are:

HH:MM:SS

Specifies that you want to display information beginning with records created at a specific time on the specified begin date using HH:MM:SS format (for example, 12:33:28).

NOW

Specifies that you want to display information beginning with records created on the current time on the specified begin date.

NOW+numhours:numminutes or +numhours:numminutes

Specifies that you want to display information beginning with records created at the current time plus a specific number of hours (and, optionally, minutes) on the specified begin date.

For example, if you issue the QUERY VOLHISTORY command at 9:00 with BEGINTIME=NOW+3 or BEGINTIME=+3, ADSM displays records with a time of 12:00 or later on the specified begin date.

NOW-numhours:numminutes or -numhours:numminutes

Specifies that you want to display information beginning with records created at the current time minus a specific number of hours (and, optionally minutes) on the specified begin date.

For example, if you issue the QUERY VOLHISTORY command at 9:00 with BEGINTIME=NOW-3:30 or BEGINTIME=-3:30, ADSM displays records with a time of 5:30 or later on the specified begin date.

ENDTime=time

Specifies the ending time for the history information to display. This parameter is optional. The default is the current time.

HH:MM:SS

Specifies that you want to display information ending with records created at a specific time on the specified end date using HH:MM:SS format (for example, 18:59:59).

NOW

Specifies that you want to display information ending with records created at the current time on the specified end date.

NOW+numhours:numminutes or +numhours:numminutes

Specifies that you want to display information ending with records created a specific number of hours (and, optionally, minutes) after the current time on the specified end date.

For example, if you issue the QUERY VOLHISTORY command at 9:00 with ENDTIME=NOW+3 or ENDTIME=+3, ADSM displays records with a time of 12:00 or earlier on the specified end date.

The following are sample commands to perform that task:

query volhistory enddate=now-1 endtime=now+3
query volhistory endate=-1 endtime=+3

NOW-numhours:numminutes or -numhours:numminutes

Specifies that you want to display information ending with records created a specific number of hours (and, optionally, minutes) prior to the current time on the specified end date.

For example, if you issue the QUERY VOLHISTORY command at 9:00 with ENDTIME=NOW-3:30 or ENDTIME=-3:30, ADSM displays records with a time of 5:30 or earlier on the specified end date.

Type=typevalue

Specifies the type of records to display from the volume history file. This parameter is optional. The default is ALL. Possible values are:

All

Specifies that all history information is displayed.

DBBackup

Specifies to display only records that contain information about volumes used for backups (full or incremental).

DBDump

Specifies to display only records that contain information about volumes used for online database dumps (done before installation of Version 2).

EXPort

Specifies to display only records that contain information about volumes used for exporting data.

STGNew

Specifies to display only records that contain information about new sequential access storage volumes.

STGReuse

Specifies to display only records that contain information about reused sequential storage pool volumes.

STGDelete

Specifies to display only records that contain information about deleted sequential storage pool volumes.

Examples

Task

Display volume history information stored in the ADSM database.

Command:
query volhistory

Output:

+--------------------------------------------------------------------------------+
|        Date/Time: 04/06/1997 18:28:06                                          |
|      Volume Type: STGNEW                                                       |
|    Backup Series: 0                                                            |
| Backup Operation: 0                                                            |
|       Volume Seq: 0                                                            |
|     Device Class: FILE                                                         |
|      Volume Name: /adsmfct/server/prvol1                                       |
|  Volume Location:                                                              |
|                                                                                |
|        Date/Time: 04/06/1997 18:28:17                                          |
|      Volume Type: STGNEW                                                       |
|    Backup Series: 0                                                            |
| Backup Operation: 0                                                            |
|       Volume Seq: 0                                                            |
|     Device Class: FILE                                                         |
|      Volume Name: /adsmfct/server/prvol2                                       |
|  Volume Location:                                                              |
|                                                                                |
|        Date/Time: 04/06/1997 18:50:53                                          |
|      Volume Type: STGNEW                                                       |
|    Backup Series: 0                                                            |
| Backup Operation: 0                                                            |
|       Volume Seq: 0                                                            |
|     Device Class: FILE                                                         |
|      Volume Name: /adsmfct/server/covol1                                       |
|  Volume Location:                                                              |
|                                                                                |
+--------------------------------------------------------------------------------+

where:

Date/Time

The date and time that the volume information was generated.

Volume Type

The type of volume. Possible values are:

BACKUPFULL

The volume was used for a full backup of the database.

BACKUPINCR

The volume was used for an incremental backup of the database.

DBDUMP

The volume was used for an online dump of the database. (These volumes were used before the installation of ADSM Version 2 Release 6.)

EXPORT

The volume was used to record data for export.

STGDELETE

The volume was a sequential access storage pool volume that was deleted.

STGNEW

The volume was a sequential access storage pool volume that was added.

STGREUSE

The volume was a sequential access storage pool volume that was reused.

Backup Series

If the volume type is BACKUPFULL or BACKUPINCR, the identifying number of the backup series of which this volume is a part. Each backup series consists of a full backup and all incremental backups that apply to that full backup, up to the next full backup of the database.

Backup Operation

If the volume type is BACKUPFULL or BACKUPINCR, the operation number of this backup volume, within the backup series. The full backup within a backup series is operation 0. The first incremental backup for that full backup is operation 1, the second incremental backup is operation 2, and so on.

Volume Seq

If the volume type is BACKUPFULL, BACKUPINCR, or EXPORT, the sequence number of the volume when it was used for backing up the database or for exporting data.

For BACKUPFULL and BACKUPINCR volumes, this is the sequence, or position, of the volume within the backup series. Volume sequence 1 identifies the first volume used for the first operation (a full backup), and so on. For example, if the full backup occupies three volumes, these volumes are identified as volume sequence 1, 2, and 3, respectively. The first volume of the next operation (the first incremental backup) is then volume sequence 4.

Device Class

The device class used for the volume.

Volume Name

The name of the volume.

Volume Location

The location of the volume. The information is available only for BACKUPFULL, BACKUPINCR, DBDUMP, and EXPORT volumes, and only if the UPDATE VOLHISTORY command was used to add the information.

Related Commands

Table 162. Commands Related to QUERY VOLHISTORY
Command Description
BACKUP VOLHISTORY Records sequential volume history information in external files.
DELETE VOLHISTORY Removes sequential volume history information from the volume history file.
UPDATE VOLHISTORY Adds or changes location information for a volume in the volume history file.


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