OS Manuals

/usr/bin/sg_rtpg

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_rtpg   [--decode] [--extended] [--help] [--hex] [--raw] [--readonly]
                 [--verbose] [--version] DEVICE
  where:
    --decode|-d        decode status and asym. access state
    --extended|-e      use extended header parameter data format
    --help|-h          print out usage message
    --hex|-H           print out response in hex
    --raw|-r           output response in binary to stdout
    --readonly|-R      open DEVICE read-only (def: read-write)
    --verbose|-v       increase verbosity
    --version|-V       print version string and exit

Performs a SCSI REPORT TARGET PORT GROUPS command
Options (8)
OptionDescriptionSource
-d, --decodedecodes the status code and asymmetric access state from each target port group descriptor returned.man
-e, --extendeduse extended header format for parameter data.man
-h, --helpoutput the usage message then exit.man
-H, --hexoutput response in hex (rather than partially or fully decode it).man
-r, --rawoutput response in binary to stdout.man
-R, --readonlyopen the DEVICE read-only (e.g. in Unix with the O_RDONLY flag).man
-v, --verboseincrease the level of verbosity, (i.e. debug output).man
-V, --versionprint the version string and then exit.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.