SG_DECODE_SENSE(8) SG3_UTILS SG_DECODE_SENSE(8) (NAME) sg_decode_sense - SCSI (SYNOPSIS) sg_decode_sense [--binary=BFN] [--cdb] [--err=ES] [--file=HFN] [--help] [--hex] [--inhex=HFN] [--ignore-first] [--json[=JO]] [--js-file=JFN] [--nodecode] [--nospace] [--status=SS] [--verbose] [--version] [--write=WFN] [H1 H2 H3 ...] (DESCRIPTION) (sense data) SCSI (ASCII hexadecimal) . SPC-5 ANSI INCITS 502-2020 SPC-6 https://www.t10.org . SCSI (kernel log) . 70 71 72 73 f0 f1 . <<>> (fixed) . . (space) . . ( ) . (#) () . --cdb SCSI ( CDB) . . ( opcode ) <> ( ) . --err=ES . ES << >> . . --verbose . --nodecode . SCSI CDB . (OPTIONS) . -b, --binary=BFN BFN . --file=HFN --inhex=HFN . --nodecode . -c, --cdb CDB SCSI . -e, --err=ES ES << >> ( ) . (stdout) --verbose ( ) (stderr) . --verbose . (line feed) . . -f, --file=HFN HFN . . (#) . --nospace HFN . -h, --help . -H, --hex --write=WFN WFN C . ( "0x3b,0x07,0x00,0xff" ). ( --write=WFN ) sg3_utils(8) . --inhex=HFN ( ) . ( '-HHH'). -i, --inhex=HFN --file=HFN . --inhex= . -I, --ignore-first ( 'hexdump -C') ( /) . . --binary=BFN --nospace . "#" . --file=HFN --nodecode . -j[=JO], --json[=JO] JSON . "=" "=" . sg3_utils_json '?' JO . -J, --js-file=JFN JSON JFN . (/truncate) . JSON stdout . --json[=JO] . --json[=JO] JO . -N, --nodecode cdb . ( ) . -n, --nospace . . ( "H1 H2 H3") HFN --file= . ( ) . -s, --status=SS SS SCSI . SCSI . -v, --verbose ( ). -V, --version . -w, --write=WFN WFN . WFN . WFN (/truncate) . --hex WFN ( --hex ) WFN . ( ) . (NOTES) SCSI ( LUN) . . SCSI . sg_raw CDB SCSI . '-vvv' sg_raw CDB . "--inhex=HFN --nodecode --write=WFN" ( ) WFN . --raw . --binary=BFN --write=WFN ( --hex) . (EXAMPLES) (verbose) . . : f0 00 03 00 00 12 34 0a 00 00 00 00 11 00 00 00 00 00 sg_decode_sense (paste) : sg_decode_sense f0 00 03 00 00 12 34 0a 00 00 00 00 11 00 00 00 00 00 : Fixed format, current; Sense key: Medium Error Additional sense: Unrecovered read error Info fld=0x1234 [4660] Medium Error Info (LBA) SCSI ( ) . sg3_utils . --nodecode : sg_decode_sense -N -i vpd_zbdc.hex -w vpd_zbdc.bin '-HHH' (stdout) . sg_decode_sense : sg_decode_sense -N -b vpd_zbdc.raw -HHH hexdump od ( 0 ) . () '-HHH' . (EXIT STATUS) sg_decode_sense 0 . sg3_utils(8) . (AUTHORS) Douglas Gilbert. (REPORTING BUGS) . (COPYRIGHT) (C) 2010-2022 Douglas Gilbert BSD-2-Clause . . (SEE ALSO) sg_requests,sg_raw(sg3_utils) sg3_utils-1.48 2023 SG_DECODE_SENSE(8)