{
    "content": [
        {
            "type": "text",
            "text": "# SG_RTPG (man)\n\n## NAME\n\nsgrtpg - send SCSI REPORT TARGET PORT GROUPS command\n\n## SYNOPSIS\n\nsgrtpg [--decode] [--help] [--hex] [--raw] [--readonly] [--verbose] [--version] DEVICE\n\n## DESCRIPTION\n\nSend a SCSI REPORT TARGET PORT GROUPS command to DEVICE and outputs the response.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (8 subsections)\n- **NOTES**\n- **EXIT STATUS**\n- **AUTHORS**\n- **REPORTING BUGS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "SG_RTPG",
        "section": "",
        "mode": "man",
        "summary": "sgrtpg - send SCSI REPORT TARGET PORT GROUPS command",
        "synopsis": "sgrtpg [--decode] [--help] [--hex] [--raw] [--readonly] [--verbose] [--version] DEVICE",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-d --decode",
                        "lines": 3,
                        "flag": "-d",
                        "long": "--decode"
                    },
                    {
                        "name": "-e --extended",
                        "lines": 3,
                        "flag": "-e",
                        "long": "--extended"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-H --hex",
                        "lines": 2,
                        "flag": "-H",
                        "long": "--hex"
                    },
                    {
                        "name": "-r --raw",
                        "lines": 2,
                        "flag": "-r",
                        "long": "--raw"
                    },
                    {
                        "name": "-R --readonly",
                        "lines": 3,
                        "flag": "-R",
                        "long": "--readonly"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "EXIT STATUS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}