Created
May 15, 2014 19:08
-
-
Save baruch/7b6d155ca0c2674b7b2e to your computer and use it in GitHub Desktop.
Get full SCSI Sense out of any command failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
probe module("scsi_mod").function("scsi_command_normalize_sense") { | |
printf("CDB:"); | |
for (i = 0; i < $cmd->cmd_len; i++) { | |
printf(" %02X", $cmd->cmnd[i]); | |
} | |
printf(" | SENSE:"); | |
for (i = 0; i < 32; i++) { | |
printf(" %02X", $cmd->sense_buffer[i]); | |
} | |
printf("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use http://scsi.ev-en.org/ to decode the sense and http://blog.disksurvey.org/knowledge-base/scsi-sense/ to make sense of what it means.