sg_decode_sense --version (return code: 0)
version: 1.08 20151219
sg_decode_sense --help (return code: 0)
Usage: sg_decode_sense [--binary=FN] [--file=FN] [--help] [--hex] [--nospace]
[--status=SS] [--verbose] [--version] [--write=WFN]
[H1 H2 H3 ...]
where:
--binary=FN|-b FN FN is a file name to read sense data in
binary from. If FN is '-' then read from stdin
--file=FN|-f FN FN 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)
--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.