User Manual

SCSI Commands Reference Manual, Rev. J 217
www.seagate.com Direct Access Block commands (SPC-5 and SBC-4)
3.46 SEND DIAGNOSTIC command
The SEND DIAGNOSTIC command (see table 187) requests the device server to perform diagnostic operations on the SCSI target
device, on the logical unit, or on both. Logical units that support this command shall implement, at a minimum, the default
self-test feature (i.e., the SELFTEST bit equal to one and a parameter list length of zero).
SELFTEST bit
1 If the SELFTEST bit is set to one, the SELF-TEST CODE field shall contain 000b.
0 If the SELFTEST bit is set to zero, the contents of SELF-TEST CODE field are specified in table 188.
SELF-TEST CODE field
Table 187 SEND DIAGNOSTIC command
Bit
Byte
7 6 5 4 3 2 1 0
0 OPERATION CODE (1Dh)
1 SELF-TEST CODE PF Reserved SELFTEST DEVOFFL UNITOFFL
2 Reserved
3 (MSB)
PARAMETER LIST LENGTH
4 (LSB)
5 CONTROL
Table 188 SELF-TEST CODE field
Code Name Description
000b
This value shall be used when the SELFTEST bit is set to one, or when the SELFTEST bit is set to zero and the
PF bit is set to one.
If the PF bit, SELFTEST bit, and PARAMETER LIST LENGTH are all zero then no testing is performed and the
command completes without error.
001b
Background
short self-test
The device server shall start its short self-test (see SPC-5) in the background mode (see SPC-5).
The PARAMETER LIST LENGTH field shall contain zero.
010b
Background
extended self-test
The device server shall start its extended self-test (see SPC-5) in the background mode (see SPC-5).
The PARAMETER LIST LENGTH field shall contain zero.
011b
Reserved
100b
Abort background
self-test
The device server shall abort the current self-test running in background mode. The PARAMETER LIST
LENGTH field shall contain zero. This value is only valid if a previous SEND DIAGNOSTIC
command specified a background self-test function and that self-test has not completed. If either of these
conditions is not met, the command shall be terminated with CHECK CONDITION status, with the sense key
set to ILLEGAL REQUEST, and the additional sense code set to INVALID FIELD IN CDB.
101b
Foreground
short self-test
The device server shall start its short self-test (see SPC-5) in the foreground mode (see SPC-5).
The PARAMETER LIST LENGTH field shall contain zero.
110b
Foreground
extended self-test
The device server shall start its extended self-test (see SPC-5) in the foreground mode (see SPC-5).
The PARAMETER LIST LENGTH field shall contain zero.
111b
Reserved