LSTAPE(8) | System Manager's Manual | LSTAPE(8) |
lstape - list tape devices.
The lstape command lists all available tape devices on the current host. For channel attached tape devices this output is the same as the contents of /proc/tapedevices (which is obsolete) but also includes offline devices. By default all tape devices are displayed.
Since SCSI tape devices are accessed differently to channel attached tape devices they are only visible if they are known to the SCSI layer. There are at least two possible drivers that can claim a SCSI tape device and the lstape command tries to find out which one this is. For the generic tape and changer driver the device names start with "st" or "sch", while for the IBM tape driver this would be "IBMtape" or "IBMchanger". If "N/A" is shown, the correct driver could not be obtained. This happens for example if there is no sg_inq command installed which is required to read the drive's serial number which in turn is used to find out the device number of the IBM tape driver.
The serial number of a SCSI tape can be displayed with the --verbose option. If there is no sg_inq command available "NO/INQ" is shown as the tape's serial.
lstape
lstape --ccw-only -t 3490 --online
Jul 2007 | s390-tools |