Log Sense
50 SL150 Interface Reference Manual Julyl 2017
Log Sense
The Log Sense command (4Dh) enables the library to report its error logs and
statistics to the initiator.
TABLE 4-19 Log Sense Command
Byte
Bit
76543210
0 Operation Code (4Dh)
1 Ignored Reserved (0) PPC (0) SP (0)
2 PC Page Code
3 Reserved (00h)
4 Reserved (00h)
5
to
6
(MSB)
Parameter Pointer
(LSB)
7
to
8
(MSB)
Allocation Length
(LSB)
9 Control Byte (00h)
Log Sense Command Definitions:
PPC Parameter Pointer Control is not supported (0).
SP Save Parameters feature is not supported (0).
PC The library accepts values of 0 or 1 in the Page Control field.
Page Code 00h = List Supported pages
07h = List Last n Error Events page
2Eh = Informational Exceptions TapeAlert page (0 or 1 in the PC field)
Parameter Pointer 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.
Allocation Length 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