Administrator's Reference

QUERY LIBRARY (Query a Library)

Use the QUERY LIBRARY command to display information about libraries.

The server options file that is created during installation includes a DEVCONFIG option that specifies a default device configuration file named devcnfg.out. You can specify other device configuration files with additional DEVCONFIG options. When you use this option in the dsmserv.opt file, the files specified are automatically updated whenever a device class, library, or drive is selected, updated, or deleted.

Privilege Class

Any administrator can issue this command.

Syntax

>>-Query LIBRary--+-------------+------------------------------->
                  '-libraryname-'
 
    .-Format--=--Standard------.
>---+--------------------------+-------------------------------><
    '-Format--=--+-Standard-+--'
                 '-Detailed-'
 

Parameters

libraryname

Specifies the name of the library to be queried. You can use pattern-matching expressions to specify names. This parameter is optional.

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 library.

Detailed

Specifies that complete information is displayed for the library.

Examples

Task 1

Display information about the library named AUTO.

Command:
query library auto

Output:

+--------------------------------------------------------------------------------+
|                                                                                |
|Library Library Device      Private  Scratch  External                          |
|Name    Type                Category Category Manager                           |
|------- ------- --------    -------- -------- --------                          |
|AUTO    SCSI    /dev/1b0                                                        |
+--------------------------------------------------------------------------------+

See Task 2 for parameter definitions.

Task 2

Display information in full detail about the library named EZLIFE.

Command:
query library ezlife format=detailed

Output:

+--------------------------------------------------------------------------------+
|                                                                                |
|                  Library Name: EZLIFE                                          |
|                  Library Type: SCSI                                            |
|                        Device: /dev/1b0                                        |
|              Private Category:                                                 |
|              Scratch Category:                                                 |
|              External Manager:                                                 |
|Last Update by (administrator): DOCTOR_MIKE                                     |
|         Last Update Date/Time: 1996-12-05 15:24:53                             |
|                                                                                |
|                                                                                |
+--------------------------------------------------------------------------------+

where:

Library Name

Specifies the name of the library to which the drive is assigned.

Library Type

Specifies the type of library to which the drive is assigned.

Device

Specifies the name of the device that corresponds to the drive.

Private Category

Specifies the category number for private volumes that must be mounted by name.

The information displayed in this field only applies to an IBM 3494 or 3495 Tape Library Dataserver.

Scratch Category

Specifies the category number to be used for scratch volumes in the library.

The information displayed in this field only applies to an IBM 3494 or 3495 Tape Library Dataserver.

External Manager

Specifies the location of the external library manager where ADSM can send media access requests. This parameter is required.

Last Update by (administrator)

Specifies who performed the last update to the drive.

Last Update Date/Time

Specifies the date and time when the last update occurred.

Related Commands

Table 138. Commands Related to QUERY LIBRARY
Command Description
AUDIT LIBRARY Ensures that an automated library is in a consistent state.
DEFINE LIBRARY Defines an automated or manual library.
DELETE LIBRARY Deletes a library.


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