{
    "content": [
        {
            "type": "text",
            "text": "# scsi_readcap (man)\n\n## NAME\n\nscsireadcap - do SCSI READ CAPACITY command on disks\n\n## SYNOPSIS\n\nscsireadcap [--brief] [--help] [--long] [--verbose] DEVICE [DEVICE]*\n\n## DESCRIPTION\n\nThis  bash  shell  script calls the sgreadcap utility on each given DEVICE. This will send a\nSCSI READ CAPACITY command to each DEVICE.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (4 subsections)\n- **EXIT STATUS**\n- **AUTHORS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "scsi_readcap",
        "section": "",
        "mode": "man",
        "summary": "scsireadcap - do SCSI READ CAPACITY command on disks",
        "synopsis": "scsireadcap [--brief] [--help] [--long] [--verbose] DEVICE [DEVICE]*",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-b",
                "long": "--brief",
                "arg": null,
                "description": "shortens the output to two hexadecimal numbers, both prefixed by '0x'. The first num‐ ber is the number of blocks available and the second is the size of each blocks in bytes (e.g. '0x12a19eb0 0x200'). If an error is detected '0x0 0x0' is output and the script continues if there are more DEVICEs."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "print out the usage message then exit."
            },
            {
                "flag": "-l",
                "long": "--long",
                "arg": null,
                "description": "the default is to send the READ CAPACITY(10) command (i.e. the 10 byte cdb variant). When this option is given the READ CAPACITY(16) command is sent. The latter command yields more information in its response."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "increase level or verbosity."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-b --brief",
                        "lines": 5,
                        "flag": "-b",
                        "long": "--brief"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-l --long",
                        "lines": 4,
                        "flag": "-l",
                        "long": "--long"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--verbose"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "scsireadcap - do SCSI READ CAPACITY command on disks\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "scsireadcap [--brief] [--help] [--long] [--verbose] DEVICE [DEVICE]*\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This  bash  shell  script calls the sgreadcap utility on each given DEVICE. This will send a\nSCSI READ CAPACITY command to each DEVICE.\n\nThe default action of this script is to send the 10 byte cdb  READ  CAPACITY(10)  command  to\neach  DEVICE. If a response indicates the number of blocks is greater than or equal to '232\n- 1' then the READ CAPACITY(16) is sent and its response is output.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "Arguments to long options are mandatory for short options as well.\n",
                "subsections": [
                    {
                        "name": "-b --brief",
                        "content": "shortens the output to two hexadecimal numbers, both prefixed by '0x'.  The first num‐\nber  is  the  number  of blocks available and the second is the size of each blocks in\nbytes (e.g. '0x12a19eb0 0x200'). If an error is detected '0x0 0x0' is output  and  the\nscript continues if there are more DEVICEs.\n",
                        "flag": "-b",
                        "long": "--brief"
                    },
                    {
                        "name": "-h --help",
                        "content": "print out the usage message then exit.\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-l --long",
                        "content": "the  default  is to send the READ CAPACITY(10) command (i.e. the 10 byte cdb variant).\nWhen this option is given the READ CAPACITY(16) command is sent.  The  latter  command\nyields more information in its response.\n",
                        "flag": "-l",
                        "long": "--long"
                    },
                    {
                        "name": "-v --verbose",
                        "content": "increase level or verbosity.\n",
                        "flag": "-v",
                        "long": "--verbose"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "The  exit status of this script is 0 when it is successful. Otherwise the exit status is that\nof the last sgreadcap utility called. See the sg3utils(8) man page.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Written by D. Gilbert\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright © 2009-2013 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": "sgreadcap (sg3utils)\n\n\n\nsg3utils-1.36                                May 2013                               SCSIREADCAP(8)",
                "subsections": []
            }
        }
    }
}