Administrator's Reference

QUERY DRIVE (Display Information about a Drive)

Use the QUERY DRIVE command to display information about a drive located in a server-attached library.

Privilege Class

Any administrator can issue this command.

Syntax

>>-QUERY DRive--+---------+---+-----------+--------------------->
                '-libname-'   '-drivename-'
 
    .-Format--=--Standard------.
>---+--------------------------+-------------------------------><
    '-Format--=--+-Standard-+--'
                 '-Detailed-'
 

Parameters

libname

Specifies the name of the library where the queried drive is located. This parameter is optional. You can use a pattern-matching expression to specify this name.

You must specify a value for this parameter if you specify DRIVENAME.

drivename

Specifies the name assigned to the drive. This parameter is optional. You can use a pattern-matching expression to specify this name.

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

Detailed

Specifies that complete information is displayed for the drive.

Examples

Task 1

Display information about all drives associated with your server.

Command:
query drive

Output:

+--------------------------------------------------------------------------------+
|Library   Drive    Device    Device             Online                          |
|Name      Name     Type                                                         |
|--------  ------   --------  -------------      --------                        |
|AUTO      8MM.0    8MM       /dev/mt1                YES                        |
|AUTO      8MM.2    8MM       /dev/mt2                YES                        |
|MANUAL    8MM.3    8MM       /dev/mt0                                           |
+--------------------------------------------------------------------------------+

See Task 2 for parameter definitions.

Task 2

Display information in full detail about the 8mm drive named DRIVE1 located in the library named AUTO.

Command:
query drive auto drive1 format=detailed

Output:

+--------------------------------------------------------------------------------+
|                   Library Name: AUTO                                           |
|                     Drive Name: DRIVE1                                         |
|                    Device Type: 8MM                                            |
|                         Device: /dev/mt0                                       |
|                        Element: 116                                            |
| Last Update by (administrator): SERVER_CONSOLE                                 |
|          Last Update Date/Time: 1995-01-13 15:25:03                            |
+--------------------------------------------------------------------------------+

where:

Library Name

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

Drive Name

Specifies the name assigned to the drive.

Device Type

Specifies the type of device.

Device

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

Share

Specifies the device is a shared device that can be used by one or more systems.

Autoloader

Specifies that the device does not hve an automatic cartridge loader that ADSM can use. This parameter only applies to the device type CARTRIDGE.

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 131. Commands Related to QUERY DRIVE
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.
QUERY LIBRARY Displays information about one or more libraries.
UPDATE DRIVE Changes the attributes of a drive.


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