Usage: sg_logs [-ALL] [--all] [--brief] [--control=PC] [--enumerate] [--exclude] [--filter=FL] [--full] [--help] [--hex] [--inhex=FN] [--json[=JO]] [--js_file=JFN] [--list] [--maxlen=LEN] [--name] [--no_inq] [--page=PG] [--paramp=PP] [--pcb] [--ppc] [--pdt=DT] [--raw] [--readonly] [--reset] [--select] [--sp] [--temperature] [--transport] [--undefined] [--vendor=VP] [--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 --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 --full|-F drill down in application client log page --help|-h print usage message then exit. Use twice for more help --hex|-H output response in hex (default: decode if known) --inhex=FN|-i FN FN is a filename containing a log page in ASCII hex or binary if --raw also given. --inhex=FN also accepted --in=FN|-i FN same as --inhex=FN --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|-l list supported log pages; twice: list supported log pages and subpages page; thrice: merge of both pages --page=PG|-p PG PG is either log page acronym, PGN or PGN,SPGN where (S)PGN is a (sub) page number --temperature|-t decode temperature (log page 0xd or 0x2f) --transport|-T decode transport (protocol specific port 0x18) page --vendor=VP|-M VP vendor/product abbreviation [or number] --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'.