SCSI Log Sense Command

The SCSI Log Sense command is used to obtain current data from log pages in a SCSI target device. The CDB structure for the Log Sense command is:

SCSI Log Sense
bit→
↓byte
7 6 5 4 3 2 1 0
0 Operation Code = 0x4D
1 LUN Reserved Obsolete SP
2 PC PAGE CODE
3 SUBPAGE CODE
4 Reserved
5 PARAMETER POINTER
6
7 ALLOCATION LENGTH
8
9 Control

The special parameter fields in the CDB have the following meaning:

  • SP - Save Parameters - if this is one then the target should save all saveable log parameters to a non-volatile memory or media area.
  • PC - Page Control - this indicates which type of values should be returned:
    • 00 - Current Threshold Values
    • 01 - Current Cumulative Values
    • 10 - Default Threshold Values
    • 11 - Default Cumulative Values
  • Parameter Pointer indicates the first parameter code to be returned.
  • Allocation Length in bytes

If the Parameter Pointer is zero and the Allocation Length is large enough then all parameters are returned.

Famous quotes containing the words log, sense and/or command:

    ‘T is wonderful how soon a piano gets into a log hut on the frontier. You would think they found it under a pine stump. With it comes a Latin grammar,—and one of those tow-head boys has written a hymn on Sunday. Now let colleges, now let senates take heed!
    Ralph Waldo Emerson (1803–1882)

    The private citizen, beset by partisan appeals for the loan of his Public Opinion, will soon see, perhaps, that these appeals are not a compliment to his intelligence, but an imposition on his good nature and an insult to his sense of evidence.
    Walter Lippmann (1889–1974)

    It is manifest therefore that they who have sovereign power, are immediate rulers of the church under Christ, and all others but subordinate to them. If that were not, but kings should command one thing upon pain of death, and priests another upon pain of damnation, it would be impossible that peace and religion should stand together.
    Thomas Hobbes (1579–1688)