{
    "mode": "man",
    "parameter": "SG_RTPG",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/SG_RTPG/8/json",
    "generated": "2026-06-14T07:28:48Z",
    "synopsis": "sgrtpg [--decode] [--help] [--hex] [--raw] [--readonly] [--verbose] [--version] DEVICE",
    "sections": {
        "NAME": {
            "content": "sgrtpg - send SCSI REPORT TARGET PORT GROUPS command\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sgrtpg [--decode] [--help] [--hex] [--raw] [--readonly] [--verbose] [--version] DEVICE\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Send a SCSI REPORT TARGET PORT GROUPS command to DEVICE and outputs the response.\n\nTarget  port group access is described in SPC-3 and SPC-4 found at www.t10.org . The most re‐\ncent draft of SPC-4 is revision 37 in which target port groups are described in section  5.15\n.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Arguments to long options are mandatory for short options as well.\n",
            "subsections": [
                {
                    "name": "-d --decode",
                    "content": "decodes  the  status  code and asymmetric access state from each target port group de‐\nscriptor returned. The default action is not to decode these values.\n",
                    "flag": "-d",
                    "long": "--decode"
                },
                {
                    "name": "-e --extended",
                    "content": "use extended header format for parameter data. This sets  the  PARAMETER  DATA  FORMAT\nfield in the cdb to 1.\n",
                    "flag": "-e",
                    "long": "--extended"
                },
                {
                    "name": "-h --help",
                    "content": "output the usage message then exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-H --hex",
                    "content": "output response in hex (rather than partially or fully decode it).\n",
                    "flag": "-H",
                    "long": "--hex"
                },
                {
                    "name": "-r --raw",
                    "content": "output response in binary to stdout.\n",
                    "flag": "-r",
                    "long": "--raw"
                },
                {
                    "name": "-R --readonly",
                    "content": "open  the  DEVICE  read-only (e.g. in Unix with the ORDONLY flag).  The default is to\nopen it read-write.\n",
                    "flag": "-R",
                    "long": "--readonly"
                },
                {
                    "name": "-v --verbose",
                    "content": "increase the level of verbosity, (i.e. debug output).\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-V --version",
                    "content": "print the version string and then exit.\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "NOTES": {
            "content": "The Report Target Port Groups command should be supported whenever the TPGS bits in  a  stan‐\ndard INQUIRY response are greater than zero. [View with sginq utility.]\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "The  exit  status  of  sgrtpg is 0 when it is successful. Otherwise see the sg3utils(8) man\npage.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Written by Douglas Gilbert.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <dgilbert at interlog dot com>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2004-2014 Christophe Varoqui and 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)\n\n\n\nsg3utils-1.39                                May 2014                                    SGRTPG(8)",
            "subsections": []
        }
    },
    "summary": "sgrtpg - send SCSI REPORT TARGET PORT GROUPS command",
    "flags": [
        {
            "flag": "-d",
            "long": "--decode",
            "arg": null,
            "description": "decodes the status code and asymmetric access state from each target port group de‐ scriptor returned. The default action is not to decode these values."
        },
        {
            "flag": "-e",
            "long": "--extended",
            "arg": null,
            "description": "use extended header format for parameter data. This sets the PARAMETER DATA FORMAT field in the cdb to 1."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "output the usage message then exit."
        },
        {
            "flag": "-H",
            "long": "--hex",
            "arg": null,
            "description": "output response in hex (rather than partially or fully decode it)."
        },
        {
            "flag": "-r",
            "long": "--raw",
            "arg": null,
            "description": "output response in binary to stdout."
        },
        {
            "flag": "-R",
            "long": "--readonly",
            "arg": null,
            "description": "open the DEVICE read-only (e.g. in Unix with the ORDONLY flag). The default is to open it read-write."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "increase the level of verbosity, (i.e. debug output)."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "print the version string and then exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "sginq",
            "section": "sg3utils",
            "url": "https://www.chedong.com/phpMan.php/man/sginq/sg3utils/json"
        }
    ]
}