Decoding CDB for SAS and SCSI, take 2
Published in
Jul 14, 2021
I already have a post about debugging SCSI on host level: https://medium.com/opsops/decoding-scsi-cdb-69beef66cd19
This is continuation. I wanted a very quick way to decode CDB (this time, from the PERC RAID controller logs).
And I found it. I have no idea why it was so hard to find at the first attempt.
There is a sg_decode_sense
program in the sg3-utils
package.
It can decode ‘sense’ from devices, but it also can decode CDB.
Now it’s super simple
Simple as this
$ sg_decode_sense --cdb b5 02 07 fe 80 00 00 00 00 01 00 00
Security protocol out
Bingo!