What are Sense Codes?

Top  Previous  Next

Sense data contains detailed information about error conditions. It is organized into major categories called sense keys and sub categories called additional sense codes (ASC) and additional sense code qualifiers (ASCQ). The combination of these data fields can finely convey detailed information about the error condition.


Whenever a command is sent to a SCSI device, the sense data is made available to the device driver.


The sense keys are generic and have the same meaning regardless of the type of device. For example, sense key #1 means to "Check Condition", but the command completed. Combined with the ASC and ASCQ bytes, the condition check might actually translate into something like, "Fly Height Change Problem, Recommend Device Replacement". Which would be the case if you had an IBM DGHS Ultrastar and received sense Code of 5d, qualifier 00, additional codes 02 25.


Your syslog file may have these types of messages in them, so in the event of a problem, you should inspect this file.