LOG SENSE | 4Dh |
LOG SENSE allows the host to read the drive’s logs. A single log is returned with each invocation of
LOG SENSE.
Illegal Field | Deferred Error | Unit Attention |
The Page Code must match one of the supported log page codes. If it does not, then CHECK CONDITION status is reported. Sense data will be as described in the Illegal Field Checks.
Command descriptor block:
|
| 7 |
| 6 | 5 | 4 |
| 3 | 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
|
| |
| 0 |
|
|
|
| Operation | Code (4Dh) |
|
|
| |
|
|
|
|
|
|
|
|
|
| ||
| 1 |
|
|
| Reserved (0) |
|
| PPC (0) | SP (0) | ||
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
| PC |
|
|
| Page Code |
|
| ||
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Reserved (0) |
|
|
|
| ||
| 4 |
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
| |
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Parameter Pointer |
|
|
| |||
| 6 |
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| 7 | (MSB) |
|
|
| Allocation Length |
|
|
| ||
|
|
|
|
|
|
|
|
| |||
| 8 |
|
|
|
|
|
| (LSB) | |||
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
| |
| 9 |
|
|
|
| Control |
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
CDB fields:
PC | The Page Control field defines the type of log parameter to be returned: | |
| 00b | Current Threshold |
|
| the maximum value that they can count to. |
| 01b | Current Cumulative |
|
| their current counts. |
|
| NOTE: Counts are reset to their default cumulative values (see below) following a |
|
| |
|
| a load. |
| 10b | Default Threshold |
| 11b | Default Cumulative |
|
| the initial values of those counters (set at |
|
| the case of media logs, load). |
| The PC field has no effect on the data returned when the selected log contains event or | |
| trace codes rather than counts. | |
|
| |
Page Code | The Page Code field identifies which log page is being requested by the host. See | |
| page 59 for the list of valid page codes. | |
|
|
|
LOG SENSE 4Dh 57
Commands