sg_logs --version (return code: 0)
Version string: 1.39 20160203
sg_logs --help (return code: 0)
Usage: sg_logs [-All] [--all] [--brief] [--control=PC] [--enumerate]
[--enum_vendor] [--filter=FL] [--help] [--hex] [--in=FN]
[--list] [--no_inq] [--maxlen=LEN] [--name] [--page=PG]
[--paramp=PP] [--pcb] [--ppc] [--raw] [--readonly]
[--reset] [--select] [--sp] [--temperature] [--transport]
[--verbose] [--version] DEVICE
where the main options are:
--All|-A fetch and decode all log pages and subpages
--all|-a fetch and decode all log pages, but not subpages; use
twice to fetch and decode all log pages and subpages
--brief|-b shorten the output of some log pages
--enumerate|-e enumerate known pages, ignore DEVICE. Sort order,
'-e': all by acronym; '-ee': non-vendor by acronym;
'-eee': all numerically; '-eeee': non-v numerically
--enum_vendor|-E enumerate known specific vendor pages only
--filter=FL|-f FL FL is parameter code to display (def: all);
with '-e' then FL>=0 enumerate that pdt + spc
FL=-1 all (default), FL=-2 spc only
--help|-h print usage message then exit. Use twice for more help
--hex|-H output response in hex (default: decode if known)
--in=FN|-i FN FN is a filename containing a log page in ASCII hex
or binary if --raw also given.
--page=PG|-p PG PG is either log page acronym, PGN or PGN,SPGN
where (S)PGN is a (sub) page number
--raw|-r either output response in binary to stdout or, if
'--in=FN' is given, FN is decoded as binary
--temperature|-t decode temperature (log page 0xd or 0x2f)
--transport|-T decode transport (protocol specific port 0x18) page
--verbose|-v increase verbosity
Performs a SCSI LOG SENSE (or LOG SELECT) command and decodes the response.
If only DEVICE is given then '-p sp' (supported pages) is assumed. Use
'-e' to see known pages and their acronyms. For more help use '-hh'.