{
    "mode": "man",
    "parameter": "sg_vpd",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/sg_vpd/8/json",
    "generated": "2026-06-02T21:26:57Z",
    "synopsis": "sgvpd  [--all]  [--enumerate]  [--examine] [--force] [--help] [--hex] [--ident] [--inhex=FN]\n[--long] [--maxlen=LEN] [--page=PG] [--quiet] [--raw] [--vendor=VP]  [--verbose]  [--version]\n[DEVICE]",
    "sections": {
        "NAME": {
            "content": "sgvpd - fetch SCSI VPD page and/or decode its response\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sgvpd  [--all]  [--enumerate]  [--examine] [--force] [--help] [--hex] [--ident] [--inhex=FN]\n[--long] [--maxlen=LEN] [--page=PG] [--quiet] [--raw] [--vendor=VP]  [--verbose]  [--version]\n[DEVICE]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This utility, when DEVICE is given, fetches a Vital Product Data (VPD) page and decodes it or\noutputs it in ASCII hexadecimal or binary. VPD pages are fetched with a SCSI INQUIRY command.\n\nAlternatively the --inhex=FN option can be given. In this case FN is assumed  to  be  a  file\nname  ('-'  for  stdin) containing ASCII hexadecimal representing a VPD page response. If the\n--raw option is also given then binary input is assumed (rather than ASCII hexadecimal).\n\nProbably the most important page is the Device Identification VPD page (page  number:  0x83).\nSince SPC-3, support for this page has been flagged as mandatory. This page can be fetched by\nusing the --ident option.\n\nThe reference document used for interpreting VPD pages (and the INQUIRY standard response) is\nT10/BSR  INCITS  502  Revision  22 which is draft SPC-5 revision 19, 22 April 2019. It can be\nfound at http://www.t10.org .\n\nWhen no options are given, other than a DEVICE, then the \"Supported VPD pages\" (0x0) VPD page\nis fetched and decoded.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Arguments  to long options are mandatory for short options as well.  The options are arranged\nin alphabetical order based on the long option name.\n",
            "subsections": [
                {
                    "name": "-a --all",
                    "content": "decode all VPD pages. When used with DEVICE the pages to be decoded are found  in  the\n\"Supported VPD pages\" VPD page. Pages that cannot be decoded are displayed in hex; add\nthe --long option to have ASCII displayed to the right of each line of hex.\nIf this option is used with the --inhex=FN option then the file FN is assumed to  con‐\ntain  1 or more VPD pages (in ASCII hex or binary).  Decoding continues until the file\nis exhausted (or an error occurs). Sanity checks are applied on each VPD page's length\nand the ascending order of VPD page numbers (required by SPC-4) so bad data may be de‐\ntected.\nIf the --page=PG option is also given then no VPD page whose page  number  is  greater\nthan PG (or its numeric equivalent) is decoded.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-e --enumerate",
                    "content": "list  the  names of the known VPD pages, first the standard pages (i.e.  those defined\nby T10), then the vendor specific pages. Each group is sorted in  abbreviation  order.\nThe DEVICE and most other options are ignored and this utility exits after listing the\nVPD page names. May be used together with --page=PG where PG is  numeric.  If  so,  it\nsearches  for  the summary lines of all VPD pages whose number matches PG. May be used\nwith --vendor=VP to restrict output to known vendor specific pages for  vendor/product\nVP.\n",
                    "flag": "-e",
                    "long": "--enumerate"
                },
                {
                    "name": "-E --examine",
                    "content": "scan  part of all of the VPD space (from 0x0 to 0xff) and output any pages found. This\noption ignores the contents of VPD page 0x0 which should contain a list  of  all  sup‐\nported  VPD  pages.  However some vendors either forget to list some standard pages or\nperhaps purposely don't list vendor specific pages which are  in  the  range  0xc0  to\n0xff.\nIf  the  --page=PG  option is not given and this option is given once then the scan is\nfrom VPD page number 0x80 to 0xff inclusive. If the --page=PG option is given then the\nscan  is from 0x80 to PG inclusive. If this option is given twice then the scan starts\nat VPD page 0x0.\nThe sdparm utility which lists mode and VPD pages also has  a  --examine  option  will\nsimilar functionility.\n",
                    "flag": "-E",
                    "long": "--examine"
                },
                {
                    "name": "-f --force",
                    "content": "As  a sanity check, the normal action when fetching VPD pages other than page 0x0 (the\n\"Supported VPD pages\" VPD page), is to first fetch page 0x0 and only if the  requested\npage is one of the supported pages, to go ahead and fetch the requested page.\nWhen  this  option  is  given,  skip checking of VPD page 0x0 before accessing the re‐\nquested VPD page. The prior check of VPD page 0x0 is known to crash  certain  USB  de‐\nvices, so use with care.\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "-h --help",
                    "content": "outputs the usage message summarizing command line options then exits.  Ignores DEVICE\nif given.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-H --hex",
                    "content": "outputs the requested VPD page in ASCII hexadecimal. Can be used multiple  times,  see\nsection on the ATA information vpd page.\nTo  generate output suitable for placing in a file that can be used by a later invoca‐\ntion with the --inhex=FN option, use the '-HHHH' option  (e.g.  'sgvpd  -p  di  -HHHH\n/dev/sg3 > devid.hex'). The reason '-HHHH' is used is to flag that unadorned hexadec‐\nimal (without other text or address offsets) is sent to stdout.\n",
                    "flag": "-H",
                    "long": "--hex"
                },
                {
                    "name": "-i --ident",
                    "content": "decode the device identification (0x83) VPD page. When used once this option  has  the\nsame effect as '--page=di'. When use twice then the short form of the device identifi‐\ncation VPD page's logical unit designator is decoded. In the latter case  this  option\nhas the same effect as '--quiet --page=dilu'.\n",
                    "flag": "-i",
                    "long": "--ident"
                },
                {
                    "name": "-I --inhex",
                    "content": "FN  is  expected to be a file name (or '-' for stdin) which contains ASCII hexadecimal\nor binary representing a VPD page (or a standard INQUIRY) response. This utility  will\nthen  decode  that  response. It is preferable to also supply the --page=PG option, if\nnot this utility will attempt to guess which VPD page (or standard  INQUIRY)  the  re‐\nsponse  is associated with. The hexadecimal should be arranged as 1 or 2 digits repre‐\nsenting a byte each of which is whitespace or comma separated. Anything from  and  in‐\ncluding  a  hash mark to the end of line is ignored. If the --raw option is also given\nthen FN is treated as binary.\n",
                    "flag": "-I",
                    "long": "--inhex"
                },
                {
                    "name": "-l --long",
                    "content": "when decoding some VPD pages, give a little more output. For example the ATA  Informa‐\ntion  VPD  page only shows the signature (in hex) and the IDENTIFY (PACKET) DEVICE (in\nhex) when this option is given.\n",
                    "flag": "-l",
                    "long": "--long"
                },
                {
                    "name": "-m --maxlen",
                    "content": "where LEN is the (maximum) response length in bytes. It is placed in the cdb's  \"allo‐\ncation  length\"  field. If not given (or LEN is zero) then 252 is used (apart from the\nATA Information VPD page which defaults to 572) and, if the  response  indicates  this\nvalue  is  insufficient,  another  INQUIRY  command is sent with a larger value in the\ncdb's \"allocation length\" field.  If this option is given and LEN is  greater  than  0\nthen only one INQUIRY command is sent. Since many simple devices implement the INQUIRY\ncommand badly (and do not support VPD pages) then the safest value to use for  LEN  is\n36. See the sginq man page for the more information.\n",
                    "flag": "-m",
                    "long": "--maxlen"
                },
                {
                    "name": "-p --page",
                    "content": "where PG is the VPD page to be decoded or output. The PG argument can either be an ab‐\nbreviation, a number or a pair or numbers/abbreviations separated by a comma. The  VPD\npage  abbreviations  can be seen by using the --enumerate option. If a number is given\nit is assumed to be decimal unless it has a hexadecimal indicator which  is  either  a\nleading  '0x' or a trailing 'h'. If one number is given then it is assumed to be a VPD\npage number. If two numbers (or abbreviations) are given then the second  one  is  the\nsame  as  VP (see the --vendor=VP option). If this option is not given (nor '-i', '-l'\nnor '-V') then the \"Supported VPD pages\" (0x0) VPD page is fetched and decoded. If  PG\nis  '-1'  or 'sinq' then the standard INQUIRY response is output. This option may also\nbe used with the --enumerate (see its description).\nIf PG is not found in the 'Supported VPD pages' VPD page (0x0) then EDOM is  returned.\nTo bypass this check use the --force option.\n",
                    "flag": "-p",
                    "long": "--page"
                },
                {
                    "name": "-q --quiet",
                    "content": "suppress the amount of decoding output.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-r --raw",
                    "content": "if  not  used  with  --inhex=FN  then output requested VPD page in binary.  The output\nshould be piped to a file or another utility when this option is used. The  binary  is\nsent to stdout, and errors are sent to stderr.\nif used with --inhex=FN then the contents of FN is treated as binary.\n",
                    "flag": "-r",
                    "long": "--raw"
                },
                {
                    "name": "-M --vendor",
                    "content": "where VP is a vendor (e.g. \"sea\" for Seagate) or vendor/product acronym (e.g. \"hp3par\"\nfor the 3PAR array from HP). Many vendors have re-used the numbers at the beginning of\nthe  vendor  specific VPD page range (e.g.  page 0xc0) and this option is a way of se‐\nlecting only those which are of interest. Using a VP of \"xxx\" will list the  available\nacronyms.\nIf  this  option  is  used with --page=PG and PG is an acronym then this option is ig‐\nnored. If PG is a number (e.g. 0xc0) then VP is used to choose the which  vendor  spe‐\ncific page (e.g. sharing page number 0xc0) to decode.\n",
                    "flag": "-M",
                    "long": "--vendor"
                },
                {
                    "name": "-v --verbose",
                    "content": "increases the level or verbosity.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-V --version",
                    "content": "print out version string then exit.\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "ATA INFORMATION VPD PAGE": {
            "content": "This  VPD page (0x89 or 'ai') is defined by the SCSI to ATA Translation standard. It contains\ninformation about the SAT layer, the \"signature\" of the ATA device and the  response  to  the\nATA  IDENTIFY  (PACKET) DEVICE command. The latter part has 512 bytes of identity, capability\nand settings data which the hdparm utility is capable of decoding (so  this  utility  doesn't\ndecode it).\n\nTo  unclutter  the  output  for this page, the signature and the IDENTIFY (PACKET) DEVICE re‐\nsponse are not output unless the --long option (or --hex or --raw) are given. When the --long\noption  is  given the IDENTIFY (PACKET) DEVICE response is output as 256 (16 bit) words as is\nthe fashion for ATA devices. To see that response as a string of bytes use the '-HH'  option.\nTo format the output suitable for hdparm to decode use either the '-HHH' or '-rr' option. For\nexample if 'dev/sdb' is a SATA disk behind a SAT layer then this command: 'sgvpd -p ai  -HHH\n/dev/sdb | hdparm --Istdin' should decode the ATA IDENTIFY (PACKET) DEVICE response.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "Since  some VPD pages (e.g. the Extended INQUIRY page) depend on settings in the standard IN‐\nQUIRY response, then the standard INQUIRY response is output as a pseudo VPD page when PG  is\nset to '-1' or 'sinq'. Also the decoding of some fields (e.g. the Extended INQUIRY page's SPT\nfield) is expanded when the '--long' option is given using the standard INQUIRY response  in‐\nformation (e.g. the PDT and the PROTECT fields).\n\nIn  the 2.4 series of Linux kernels the DEVICE must be a SCSI generic (sg) device. In the 2.6\nseries block devices (e.g. disks and ATAPI DVDs) can also be specified. For  example  \"sginq\n/dev/sda\"  will  work in the 2.6 series kernels. From lk 2.6.6 other SCSI \"char\" device names\nmay be used as well (e.g. \"/dev/st0m\").\n\nThe DEVICE is opened with a read-only flag (e.g. in Unix with the ORDONLY flag).\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "The exit status of sgvpd is 0 when it is successful.  Otherwise  see  the  sg3utils(8)  man\npage.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "The  examples  in  this  page use Linux device names. For suitable device names in other sup‐\nported Operating Systems see the sg3utils(8) man page.\n\nTo see the VPD pages that a device supports, use with no options. The command line invocation\nis shown first followed by a typical response:\n\n# sgvpd /dev/sdb\nSupported VPD pages VPD page:\nSupported VPD pages [sv]\nUnit serial number [sn]\nDevice identification [di]\nExtended inquiry data [ei]\nBlock limits (SBC) [bl]\n\nTo  see the VPD page numbers associated with each supported page then add the '--long' option\nto the above command line. To view a VPD page either its number or abbreviation can be  given\nto  the '--page=' option. The page name abbreviations are shown within square brackets above.\nIn the next example the Extended inquiry data VPD page is listed:\n\n# sgvpd --page=ei /dev/sdb\nextended INQUIRY data VPD page:\nACTIVATEMICROCODE=0 SPT=0 GRDCHK=0 APPCHK=0 REFCHK=0\nUASKSUP=0 GROUPSUP=0 PRIORSUP=0 HEADSUP=1 ORDSUP=1 SIMPSUP=1\nWUSUP=0 CRDSUP=0 NVSUP=0 VSUP=0\nPIISUP=0 LUICLR=0 RSUP=0 CBCS=0\nMulti IT nexus microcode download=0\nExtended self-test completion minutes=0\nPOASUP=0 HRASUP=0 VSASUP=0\n\nTo check if any protection types are supported by a disk use the '--long' option on  the  Ex‐\ntended inquiry data VPD page:\n\n# sgvpd --page=ei --long /dev/sdb\nextended INQUIRY data VPD page:\nACTIVATEMICROCODE=0\nSPT=1 [protection types 1 and 2 supported]\nGRDCHK=1\n....\n\nSearch for the name (and acronym) of all pages that share VPD page number 0xb0 .\n\n# sgvpd --page=0xb0 --enumerate\nMatching standard VPD pages:\nbl         0xb0      Block limits (SBC)\noi         0xb0      OSD information\nsad        0xb0      Sequential access device capabilities (SSC)\n\nSome  examples  follow  using the \"--all\" option. Send an ASCII hexadecimal representation of\nall VPD pages to a file:\n\n# sgvpd --all -HHHH /dev/sg3 > allvpds.hex\n\nAt some later time that file could be decoded with:\n\n# sgvpd --all --inhex=allvpds.hex\n\nTo do the equivalent as the previous example but use a file containing binary:\n\n# sgvpd --all --raw /dev/sg3 > allvpds.bin\n# sgvpd --all --raw --inhex=allvpds.bin\n\nNotice that \"--raw\" must be given with the second (--inhex) invocation to alert  the  utility\nthat  allvpds.bin  contains  binary as it assumes ASCII hexadecimal by default. Next we only\ndecode T10 specified VPD pages excluding vendor specific VPD pages that start at page  number\n0xc0:\n\n# sgvpd --all --page=0xbf --raw --inhex=allvpds.bin\n\nFurther examples can be found on the http://sg.danny.cz/sg/sg3utils.html web page.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Written by Douglas Gilbert\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <dgilbert at interlog dot com>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2006-2021 Douglas Gilbert\nThis software is distributed under a FreeBSD license. There is NO warranty; not even for MER‐\nCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "sginq(sg3utils), sg3utils(sg3utils), sdparm(sdparm), hdparm(hdparm)\n\n\n\nsg3utils-1.46                               March 2021                                    SGVPD(8)",
            "subsections": []
        }
    },
    "summary": "sgvpd - fetch SCSI VPD page and/or decode its response",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "decode all VPD pages. When used with DEVICE the pages to be decoded are found in the \"Supported VPD pages\" VPD page. Pages that cannot be decoded are displayed in hex; add the --long option to have ASCII displayed to the right of each line of hex. If this option is used with the --inhex=FN option then the file FN is assumed to con‐ tain 1 or more VPD pages (in ASCII hex or binary). Decoding continues until the file is exhausted (or an error occurs). Sanity checks are applied on each VPD page's length and the ascending order of VPD page numbers (required by SPC-4) so bad data may be de‐ tected. If the --page=PG option is also given then no VPD page whose page number is greater than PG (or its numeric equivalent) is decoded."
        },
        {
            "flag": "-e",
            "long": "--enumerate",
            "arg": null,
            "description": "list the names of the known VPD pages, first the standard pages (i.e. those defined by T10), then the vendor specific pages. Each group is sorted in abbreviation order. The DEVICE and most other options are ignored and this utility exits after listing the VPD page names. May be used together with --page=PG where PG is numeric. If so, it searches for the summary lines of all VPD pages whose number matches PG. May be used with --vendor=VP to restrict output to known vendor specific pages for vendor/product VP."
        },
        {
            "flag": "-E",
            "long": "--examine",
            "arg": null,
            "description": "scan part of all of the VPD space (from 0x0 to 0xff) and output any pages found. This option ignores the contents of VPD page 0x0 which should contain a list of all sup‐ ported VPD pages. However some vendors either forget to list some standard pages or perhaps purposely don't list vendor specific pages which are in the range 0xc0 to 0xff. If the --page=PG option is not given and this option is given once then the scan is from VPD page number 0x80 to 0xff inclusive. If the --page=PG option is given then the scan is from 0x80 to PG inclusive. If this option is given twice then the scan starts at VPD page 0x0. The sdparm utility which lists mode and VPD pages also has a --examine option will similar functionility."
        },
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "As 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 supported pages, to go ahead and fetch the requested page. When this option is given, skip checking of VPD page 0x0 before accessing the re‐ quested VPD page. The prior check of VPD page 0x0 is known to crash certain USB de‐ vices, so use with care."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "outputs the usage message summarizing command line options then exits. Ignores DEVICE if given."
        },
        {
            "flag": "-H",
            "long": "--hex",
            "arg": null,
            "description": "outputs the requested VPD page in ASCII hexadecimal. Can be used multiple times, see section on the ATA information vpd page. To generate output suitable for placing in a file that can be used by a later invoca‐ tion with the --inhex=FN option, use the '-HHHH' option (e.g. 'sgvpd -p di -HHHH /dev/sg3 > devid.hex'). The reason '-HHHH' is used is to flag that unadorned hexadec‐ imal (without other text or address offsets) is sent to stdout."
        },
        {
            "flag": "-i",
            "long": "--ident",
            "arg": null,
            "description": "decode the device identification (0x83) VPD page. When used once this option has the same effect as '--page=di'. When use twice then the short form of the device identifi‐ cation VPD page's logical unit designator is decoded. In the latter case this option has the same effect as '--quiet --page=dilu'."
        },
        {
            "flag": "-I",
            "long": "--inhex",
            "arg": null,
            "description": "FN 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. This utility will then decode that response. It is preferable to also supply the --page=PG option, if not this utility will attempt to guess which VPD page (or standard INQUIRY) the re‐ sponse is associated with. The hexadecimal should be arranged as 1 or 2 digits repre‐ senting a byte each of which is whitespace or comma separated. Anything from and in‐ cluding a hash mark to the end of line is ignored. If the --raw option is also given then FN is treated as binary."
        },
        {
            "flag": "-l",
            "long": "--long",
            "arg": null,
            "description": "when decoding some VPD pages, give a little more output. For example the ATA Informa‐ tion VPD page only shows the signature (in hex) and the IDENTIFY (PACKET) DEVICE (in hex) when this option is given."
        },
        {
            "flag": "-m",
            "long": "--maxlen",
            "arg": null,
            "description": "where LEN is the (maximum) response length in bytes. It is placed in the cdb's \"allo‐ cation length\" field. If not given (or LEN is zero) then 252 is used (apart from the ATA Information VPD page which defaults to 572) and, if the response indicates this value is insufficient, another INQUIRY command is sent with a larger value in the cdb's \"allocation length\" field. If this option is given and LEN is greater than 0 then only one INQUIRY command is sent. Since many simple devices implement the INQUIRY command badly (and do not support VPD pages) then the safest value to use for LEN is 36. See the sginq man page for the more information."
        },
        {
            "flag": "-p",
            "long": "--page",
            "arg": null,
            "description": "where PG is the VPD page to be decoded or output. The PG argument can either be an ab‐ breviation, a number or a pair or numbers/abbreviations separated by a comma. The VPD page abbreviations can be seen by using the --enumerate option. If a number is given it is assumed to be decimal unless it has a hexadecimal indicator which is either a leading '0x' or a trailing 'h'. If one number is given then it is assumed to be a VPD page number. If two numbers (or abbreviations) are given then the second one is the same as VP (see the --vendor=VP option). If this option is not given (nor '-i', '-l' nor '-V') then the \"Supported VPD pages\" (0x0) VPD page is fetched and decoded. If PG is '-1' or 'sinq' then the standard INQUIRY response is output. This option may also be used with the --enumerate (see its description). If PG is not found in the 'Supported VPD pages' VPD page (0x0) then EDOM is returned. To bypass this check use the --force option."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "suppress the amount of decoding output."
        },
        {
            "flag": "-r",
            "long": "--raw",
            "arg": null,
            "description": "if not used with --inhex=FN then output requested VPD page in binary. The output should be piped to a file or another utility when this option is used. The binary is sent to stdout, and errors are sent to stderr. if used with --inhex=FN then the contents of FN is treated as binary."
        },
        {
            "flag": "-M",
            "long": "--vendor",
            "arg": null,
            "description": "where VP is a vendor (e.g. \"sea\" for Seagate) or vendor/product acronym (e.g. \"hp3par\" for the 3PAR array from HP). Many vendors have re-used the numbers at the beginning of the vendor specific VPD page range (e.g. page 0xc0) and this option is a way of se‐ lecting only those which are of interest. Using a VP of \"xxx\" will list the available acronyms. If this option is used with --page=PG and PG is an acronym then this option is ig‐ nored. If PG is a number (e.g. 0xc0) then VP is used to choose the which vendor spe‐ cific page (e.g. sharing page number 0xc0) to decode."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "increases the level or verbosity."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "print out version string then exit."
        }
    ],
    "examples": [
        "The  examples  in  this  page use Linux device names. For suitable device names in other sup‐",
        "ported Operating Systems see the sg3utils(8) man page.",
        "To see the VPD pages that a device supports, use with no options. The command line invocation",
        "is shown first followed by a typical response:",
        "# sgvpd /dev/sdb",
        "Supported VPD pages VPD page:",
        "Supported VPD pages [sv]",
        "Unit serial number [sn]",
        "Device identification [di]",
        "Extended inquiry data [ei]",
        "Block limits (SBC) [bl]",
        "To  see the VPD page numbers associated with each supported page then add the '--long' option",
        "to the above command line. To view a VPD page either its number or abbreviation can be  given",
        "to  the '--page=' option. The page name abbreviations are shown within square brackets above.",
        "In the next example the Extended inquiry data VPD page is listed:",
        "# sgvpd --page=ei /dev/sdb",
        "extended INQUIRY data VPD page:",
        "ACTIVATEMICROCODE=0 SPT=0 GRDCHK=0 APPCHK=0 REFCHK=0",
        "UASKSUP=0 GROUPSUP=0 PRIORSUP=0 HEADSUP=1 ORDSUP=1 SIMPSUP=1",
        "WUSUP=0 CRDSUP=0 NVSUP=0 VSUP=0",
        "PIISUP=0 LUICLR=0 RSUP=0 CBCS=0",
        "Multi IT nexus microcode download=0",
        "Extended self-test completion minutes=0",
        "POASUP=0 HRASUP=0 VSASUP=0",
        "To check if any protection types are supported by a disk use the '--long' option on  the  Ex‐",
        "tended inquiry data VPD page:",
        "# sgvpd --page=ei --long /dev/sdb",
        "extended INQUIRY data VPD page:",
        "ACTIVATEMICROCODE=0",
        "SPT=1 [protection types 1 and 2 supported]",
        "GRDCHK=1",
        "....",
        "Search for the name (and acronym) of all pages that share VPD page number 0xb0 .",
        "# sgvpd --page=0xb0 --enumerate",
        "Matching standard VPD pages:",
        "bl         0xb0      Block limits (SBC)",
        "oi         0xb0      OSD information",
        "sad        0xb0      Sequential access device capabilities (SSC)",
        "Some  examples  follow  using the \"--all\" option. Send an ASCII hexadecimal representation of",
        "all VPD pages to a file:",
        "# sgvpd --all -HHHH /dev/sg3 > allvpds.hex",
        "At some later time that file could be decoded with:",
        "# sgvpd --all --inhex=allvpds.hex",
        "To do the equivalent as the previous example but use a file containing binary:",
        "# sgvpd --all --raw /dev/sg3 > allvpds.bin",
        "# sgvpd --all --raw --inhex=allvpds.bin",
        "Notice that \"--raw\" must be given with the second (--inhex) invocation to alert  the  utility",
        "that  allvpds.bin  contains  binary as it assumes ASCII hexadecimal by default. Next we only",
        "decode T10 specified VPD pages excluding vendor specific VPD pages that start at page  number",
        "0xc0:",
        "# sgvpd --all --page=0xbf --raw --inhex=allvpds.bin",
        "Further examples can be found on the http://sg.danny.cz/sg/sg3utils.html web page."
    ],
    "see_also": [
        {
            "name": "sginq",
            "section": "sg3utils",
            "url": "https://www.chedong.com/phpMan.php/man/sginq/sg3utils/json"
        },
        {
            "name": "sg3utils",
            "section": "sg3utils",
            "url": "https://www.chedong.com/phpMan.php/man/sg3utils/sg3utils/json"
        },
        {
            "name": "sdparm",
            "section": "sdparm",
            "url": "https://www.chedong.com/phpMan.php/man/sdparm/sdparm/json"
        },
        {
            "name": "hdparm",
            "section": "hdparm",
            "url": "https://www.chedong.com/phpMan.php/man/hdparm/hdparm/json"
        }
    ]
}