User's Guide

GET_DEVICE

Return information about a tape drive

Function:

Returns the device name, type of tape, and density of a specified tape drive.

Parameters:

tape_drive
Tape drive. The name of the tape drive for which information is desired.

Examples:

  1. LAS> ush get_device 1

    The device name, type of tape, and density of local tape drive 1 will be printed to the standard output.

  2. LAS> ush get_device sg1@2

    The device name, type of tape, and density of tape drive 2 on remote computer SG1 will be printed to the standard output.

Description/Algorithm:

get_device is run from the UNIX command line.

The LAS tape configuration file is read to find the device name, tape type, and density of the specified drive. The information is printed to the standard output.

Nonfatal Error Messages:

    None.

Fatal Error Messages:

  1. get_device: Error reading tape configuration file

    The specified tape drive could not be found in the tape configuration file. The drive's record in the file is missing or invalid. Contact the system administrator.

User Notes:

  1. get_device returns a 1 status if an error occurs and 0 otherwise.