This documentation only applies to QUADStor Tape Test Framework software (quadstor-ttf)

Devices can be offlined with specific sense code information. To get the current status of a device

/quadstorvtl/bin/devctl -l -v <vtl name> -d <drive number>

Drive numbers start from 1. For medium changers and standalone tape drives, drive numbers do apply

For example

/quadstorvtl/bin/devctl -l -v VTL1
Name: VTL1
Target ID: 0
Offline: No

To get the first drive information for VTL 1
/quadstorvtl/bin/devctl -l -v VTL1 -d 1
Name: VTL1
Target ID: 1
Offline: No

Offline a device

/quadstorvtl/bin/devctl -o 1 -v <vtl name> -d <drive number> -r <response code> -s <sense key> -c <asc> -q <ascq>

For example

/quadstorvtl/bin/devctl -o 1 -v VTL1 -c 04 -q 01
Device control information successfully modified
Name: VTL1
Target ID: 0
Offline: Yes
Response Code: 70
Sense Key: 02
ASC/ASCQ: 04/01 LOGICAL UNIT IS IN PROCESS OF BECOMING READY

When a device is offline all commands are terminated with the specified sense data codes as seen in the following command

sg_raw -r 64 /dev/pass3 4D 00 2E 00 00 00 00 00 40 00
SCSI Status: Check Condition 

Sense Information:
Fixed format, current;  Sense key: Not Ready
Additional sense: Logical unit is in process of becoming ready

Online a device

/quadstorvtl/bin/devctl -o 0 -v <vtl name> -d <drive number>

For example

/quadstorvtl/bin/devctl -o 0 -v VTL1 -c 04 -q 01
Device control information successfully modified
Name: VTL1
Target ID: 0
Offline: No