OS Manuals

/usr/bin/sg_vpd

SCSI utilities for Linux, Unix and Windows

From sg3-utils 1.49-r3 (enterprise-packages), captured 2026-11-08 by running sg_vpd --help (exit 0). permalink

Usage: sg_vpd  [--all] [--descriptors] [--enumerate] [--examine]
               [--force] [--help] [--hex] [--ident] [--inhex=FN]
               [--json[=JO]] [--js-file=JFN] [--long] [--maxlen=LEN]
               [--page=PG] [--quiet] [--raw] [--sinq_inraw=RFN]
               [--vendor=VP] [--verbose] [--version] DEVICE
  where:
    --all|-a        output all pages listed in the supported pages VPD
                    page
    --descriptors|-d    display standard inquiry version descriptors
    --enumerate|-e    enumerate known VPD pages names (ignore DEVICE),
                      can be used with --page=num to search
    --examine|-E    starting at 0x80 scan pages code to 0xff
    --force|-f      skip VPD page 0 (supported VPD pages) checking
    --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
    --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
    --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');
                       can also take PG,VP as an operand
    --quiet|-q      suppress some decoding and error output
    --raw|-r        output page in binary; if --inhex=FN is also
                    given, FN is in binary (else FN is in hex)
    --sinq_inraw=RFN|-Q RFN    read raw (binary) standard INQUIRY
                               response from the RFN filename
    --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' or '-p sinq' yields the standard INQUIRY response.
Options (20)
OptionDescriptionSource
--inhex, -I FN|-IFN is expected to be a file name (or '-' for stdin) which contains ASCII hexadecimal or binary representing a VPD page (or a standard INQUIRY) response.help + man
--json JO]|-j[=JOoutput in JSON instead of plain text Use --json=? for JSON helphelp
--js-file, -J JFN|-JJFN is a filename to which JSON output is written (def: stdout);help + man
--maxlen, -m LEN|-mmax response length (allocation length in cdb) (def: 0 -> 252 bytes)help + man
--page, -p PG|-pfetch VPD page where PG is an acronym, or a decimal number unless hex indicator is given (e.g. '0x83');help + man
--sinq_inraw, -Q RFN|-Qwhere RFN is a filename containing binary standard INQUIRY response data that matches either DEVICE or FN.help + man
--vendor, -M VP|-Mwhere VP is a vendor (e.g. "sea" for Seagate) or vendor/product acronym (e.g. "hp3par" for the 3PAR array from HP).help + man
-a, --alldecode all VPD pages. (in the manual page but not in --help)man
-d, --descriptorsthis option causes the standard INQUIRY command to be sent and its response to be decoded followed by any version descriptors found. (in the manual page but not in --help)man
-e, --enumeratelist the names of the known VPD pages, first the standard pages (i.e. those defined by T10), then the vendor specific pages. (in the manual page but not in --help)man
-E, --examinescan part of all of the VPD space (page numbers 0x0 to 0xff) and output any pages found. (in the manual page but not in --help)man
-f, --forceAs a sanity check, the normal action when fetching VPD pages other than page 0x0 (the "Supported VPD pages" VPD page), is to first fetch page 0x0 and only if the requested page is one of the… (in the manual page but not in --help)man
-h, --helpoutputs the usage message summarizing command line options then exits. (in the manual page but not in --help)man
-H, --hexoutputs the requested VPD page in ASCII hexadecimal. (in the manual page but not in --help)man
-i, --identdecode the device identification (0x83) VPD page. (in the manual page but not in --help)man
-l, --longwhen decoding some VPD pages, give a little more output. (in the manual page but not in --help)man
-q, --quietsuppress the amount of decoding and error output. (in the manual page but not in --help)man
-r, --rawif not used with --inhex=FN then output requested VPD page in binary. (in the manual page but not in --help)man
-v, --verboseincreases the level or verbosity. (in the manual page but not in --help)man
-V, --versionprint out version string then exit. (in the manual page but not in --help)man
Exit status (1) from the manual page
0it is successful

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.