Usage: sg_decode_sense [--binary=BFN] [--cdb] [--err=ES[,LES]] [--file=HFN] [--help] [--hex] [--inhex=HFN] [--ignore-first] [--json[=JO]] [--js_file=JFN] [--list-err] [--nodecode] [--nospace] [--status=SS] [--verbose] [--version] [--write=WFN] H1 H2 H3 ... where: --binary=BFN|-b BFN BFN is a file name to read sense data in binary from. If BFN is '-' then read from stdin --cdb|-c decode given hex as cdb rather than sense data --err=ES|-e ES ES is Exit Status from utility in this package --err=ES,LES|-e ES,LES ES,LES is a range of exit status values --file=HFN|-f HFN HFN is a file name from which to read sense data in ASCII hexadecimal. Interpret '-' as stdin --help|-h print out usage message --hex|-H used together with --write=WFN, to write out C language style ASCII hex (instead of binary). Otherwise don't decode, output incoming data in hex (used '-HH' or '-HHH' for different formats) --inhex=HFN|-i HFN same as action as --file=HFN --ignore-first|-I when reading hex (e.g. with --file=HFN) skip the first hexadecimal value on each line --json[=JO]|-j[=JO] output in JSON instead of plain text Use --json=? for JSON help --js-file=JFN|-J JFN JFN is a filename to which JSON output is written (def: stdout); truncates then writes --list-err|-l list all error codes and meanings for sg3_utils --nodecode|-N do not decode, input hex or binary may be unrelated to SCSI sense or CDB formats --nospace|-n no spaces or other separators between pairs of hex digits (e.g. '3132330A') --status=SS |-s SS SCSI status value in hex --verbose|-v increase verbosity --version|-V print version string then exit --write=WFN |-w WFN write sense data in binary to WFN, create if required else truncate prior to writing Decodes SCSI sense data given on the command line as a sequence of hexadecimal bytes (H1 H2 H3 ...) . Alternatively the sense data can be in a binary file or in a file containing ASCII hexadecimal. If '--cdb' is given then interpret hex as SCSI CDB rather than sense data. May translate arbitrary hex data to binary and vice versa when --nodecode is given. Example: sg_decode_sense -N -i vpd_fs.hex -w vpd_fs.bin