Log Sense
The Log Sense command (4Dh) enables the library to report its error logs and
statistics to the initiator.
TABLE 6-14 Log Sense Command
Byte
7
0
1
2
PC
3
4
5
(MSB)
to
6
7
(MSB)
to
8
9
Log Sense Command Definitions:
PPC
SP
PC
Page Code
Parameter Pointer
Allocation Length
96122 • Revision: F
6
5
Operation Code (4Dh)
Ignored
Parameter Pointer
Allocation Length
Control Byte (00h)
Parameter Pointer Control is not supported (0).
Save Parameters feature is not supported (0).
The library accepts values of 0 or 1 in the Page Control field.
00h = List Supported pages
■
07h = List Last n Error Events page
■
2Eh = Informational Exceptions TapeAlert page (0 or 1 in the PC field)
■
The Parameter Pointer allows an initiator to request data starting at a specific
parameter code. This value is set to 00h for page code 0h.
Specifies the number of bytes the initiator has allocated for data returned from
the Log Sense command.
A value of 0 is considered an error.
The maximum data length for the log sense data that the library can return
is 3C4h bytes.
The length varies based on the Page Code selected.
00h = List Supported pages; length is 7h
■
07h = List Last n Error Events page; length is 3C4h
■
2Eh = Informational Exceptions TapeAlert page; length is 144h
■
Bit
4
3
Reserved (0)
Page Code
Reserved (00h)
Reserved (00h)
Chapter 6 SCSI Commands 99
Log Sense
2
1
0
PPC (0)
SP (0)
(LSB)
(LSB)