sg_vpd --version (return code: 0)
version: 1.14 20160217
sg_vpd --help (return code: 0)
Usage: sg_vpd [--all] [--enumerate] [--help] [--hex] [--ident]
[--inhex=FN] [--long] [--maxlen=LEN] [--page=PG] [--quiet]
[--raw] [--vendor=VP] [--verbose] [--version] DEVICE
where:
--all|-a output all pages listed in the supported pages VPD
page
--enumerate|-e enumerate known VPD pages names (ignore DEVICE),
can be used with --page=num to search
--help|-h output this usage message then exit
--hex|-H output page in ASCII hexadecimal
--ident|-i output device identification VPD page, twice for
short logical unit designator (equiv: '-qp di_lu')
--inhex=FN|-I FN read ASCII hex from file FN instead of DEVICE;
if used with --raw then read binary from FN
--long|-l perform extra decoding
--maxlen=LEN|-m LEN max response length (allocation length in cdb)
(def: 0 -> 252 bytes)
--page=PG|-p PG fetch VPD page where PG is an acronym, or a decimal
number unless hex indicator is given (e.g. '0x83')
--quiet|-q suppress some output when decoding
--raw|-r output page in binary; if --inhex=FN is also
given, FN is in binary (else FN is in hex)
--vendor=VP | -M VP vendor/product abbreviation [or number]
--verbose|-v increase verbosity
--version|-V print version string and exit
Fetch Vital Product Data (VPD) page using SCSI INQUIRY or decodes VPD
page response held in file FN. To list available pages use '-e'. Also
'-p -1' yields the standard INQUIRY response.