VMware ESXi SCSI Sense Code Decoder

SCSI errors or warnings in ESXi are displayed with 6 status codes. This page converts these sense codes from ESXi Hosts to human readable status information. In the vmkernel.log system log file from an ESXi 5.x or 6.0 hosts, you see entries similar to the following. Enter the colored numbers to the form and press Submit:

ScsiDeviceIO: [...] Cmd 0x1a [...] to dev "naa.x" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x24 0x0.

H:0x   D:0x   P:0x    Sense data: 0x   0x   0x

(Optional: Cmd 0x )           


Type Code Name Description
Host Status [0x8] RESET This status is returned when the HBA driver has aborted the I/O. It can also occur if the HBA does a reset of the target.
Device Status [0x0] GOOD This status is returned when there is no error from the device or target side. This is when you will see if there is a status for Host or Plugin.
Plugin Status [0x0] GOOD No error. (ESXi 5.x / 6.x only)
Sense Key [0xB] ABORTED COMMAND
Additional Sense Data C0/00 Additional Sense Data unknown.

Changelog

2017-09-01:
- 30 Additional Sense Data Codes have been added to the decoder
- Host Status and Sense Key are no longer case sensitive
- SCSI OP Code translation has been added to the decoder

2015-05-06:
- Initial Release

Leave a comment ?

27 Comments.

  1. New Tool: Decoder for ESXi SCSI Sense Codes | Virten.net - pingback on May 10, 2015 at 11:22 pm
  2. Great Tool. Thank you very much. Very useful

  3. This is very useful tool, thank you for sharing that.

  4. This is a very useful tool. Thanks for developing and sharing this!

  5. This is great!

  6. Thanks for sharing. Great Tool.

  7. Excellent Tool, if we can get some information about how communication happens from ESXi host to Storage from logs that would be great, what command ESXi sends to Storage first and then what commands will be running on ESXi host when I/O is happening would be great.

    • Do you have Logs that you want to understand? If yes, feel free to provide.
      You do not see each SCSI command in the log. This would be way to much. There are physical appliances in the market that you can put between your server and the storage array to capture all traffic. But these appliances are very rare and require very deep protocol knowledge.

      From the ESXi log you usually only see datastore heartbeat and failed commands.

  8. Excellent tool and saves lot of time

  9. This has been so helpful over the last few months, I needed to write a comment to applaud you! THANK YOU VERY MUCH

  10. Really useful!

  11. Very useful tool - THANKS!

  12. Vivek Chaturvedi

    Great work.. It really helps. Thanks a TON..!!

  13. This is a greate tool, thank you for sharing.

  14. Thanks for sharing this great tool!

  15. Great tool indeed!

  16. Anders Olsson

    Love it, and I'm using it every time I troubleshoot storage issues!

  17. Thanks for this awesome decoder, may my job so much easier!!

  18. Its an great tool and thank you very much for sharing this

  19. Do you have a file with all the sense codes you can share?

  20. Thank you! Wonderful tool!

  21. Excellent Tool. Saves such a lot of time. Thanks.

  22. Its great tool...thanks for sharing!!

  23. Thanks! Saves a ton of time searching :)
    Great tool.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Trackbacks and Pingbacks: