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: [...] 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

Show me an example for H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x24 0x0.

Leave a comment ?


  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.

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: