Given the drive name, return the device name, device type, density, and tape drive system host name
Finds the device name, device type, density, and system host name for a specified drive name. These four values are returned to the calling procedure as character strings.
- DRIVE
- Drive name. The name of the tape drive.
- DEVICE
- Device specification. The system device file name of the tape drive specified in DRIVE will be returned in this TAE string variable. Examples include "/dev/rmt/tps0d5nrnsv" and "/dev/rmt/xmt0d0nr".
- DTYPE
- Device type. The type of tape drive specified in DRIVE will be returned in this TAE string variable. Examples include "3480", "9-track", and "8mm".
- DENSITY
- Density. The tape density of the device specified in DRIVE will be returned in this TAE string variable. Examples include "LO" and "6250".
- THOST
- Tape drive host. The system host name upon which the tape drive is located will be returned in this TAE string variable. Examples include "edcsgs20" and "dg5".
The device name, device type, density, and tape drive system host name are returned to the local variables dev, dtyp, dens, and host. Examples of a return device name, device type, density, and system host name are "/dev/rmt/tps0d5nrnsv", "3480", "LO", and "edcsgs20", respectively.
GETDRIVEINFO reads the TAPE;CONFIG file in LASTABLES to determine the system device file name, device type, tape density and tape drive system host name for the specified drive. These four values are returned in TAE parameters.
A fatal error was encountered. The message displayed preceding this message is the error that was encountered. Processing terminates.
An error was encountered while trying to read the file that contains tape drive values. Verify that the specified drive is valid.
local dattype type=string