
47
9.23 SendSCSICommand()
This function specifies to send a selected SCSI Command event to the script.
Format : SendSCSICommand( OpCode, ServiceAction,
Field Name, Field Value, Nexus Info);
Parameters
OpCode Option Code of the SCSI Command event:
_ANY
SPC3_REPORT_LUNS : 0xA0
MMC4_READ_10 : 0x28
For a complete list of SCSI Command codes, refer to Appendix C
.
ServiceAction: Service Action of the SCSI Command event. The Value combines with
the OpCode value and results in the formation of different
combinations of SCSI Commands.
OpCode + Service Action Value-1 = SCSI Command-1
OpCode + Service Action Value-2 = SCSI Command-2
Example:
0xA3 + 0x10 = MANAGEMENT_PROTOCOL_IN
0xA3 + 0x0E = REPORT_PRIORITY
0xA3 + 0x0F = REPORT_TIME_STAMP
Field Name Refer to SendSSPTransport ()
.
Field Value Refer to SendSSPTransport ()
.
Nexus Info Refer to SendSSPTransport ()
.
Example
…
SendSCSICommand (_ANY);
SendSCSICommand (0xA0); # Report LUN.
SendSCSICommand (0x28, _ANY, “”, 0, ‘500062B000001074’);
# MMC4_READ_10
Commenti su questo manuale