SG_RTPG(8)
β¨ sg_rtpg π SEND SCSI REPORT TARGET PORT GROUPS COMMAND β¨
Okay bestie, this is the manual page for sg_rtpg, the tool that sends a SCSI REPORT TARGET PORT GROUPS command. π¦
π SYNOPSIS π
sg_rtpg [--decode] [--help] [--hex] [--raw] [--readonly] [--verbose]
[--version] DEVICE
π DESCRIPTION π
So basically, sg_rtpg sends a SCSI REPORT TARGET PORT GROUPS command to DEVICE and then prints whatever comes back. It's giving main character energy πΈ
Target port group access is described in SPC-3 and SPC-4, which you can find at www.t10.org . π The newest draft of SPC-4 is revision 37, and that's where target port groups live, in section 5.15 . Go read it if you're obsessed π€
π OPTIONS π
Quick vibe check: arguments to long options are mandatory for short options as well. Don't forget that one π«Ά
-d,--decodeβ decodes the status code and asymmetric access state from each target port group descriptor that comes back. By default it does NOT decode these values, so you have to ask for it πββοΈ-e,--extendedβ uses the extended header format for parameter data. This sets the PARAMETER DATA FORMAT field in the cdb to1. β¨-h,--helpβ prints the usage message and then exits. π§-H,--hexβ shows the response in hex instead of partially or fully decoding it. π-r,--rawβ dumps the response as binary to stdout. π-R,--readonlyβ opens the DEVICE read-only (on Unix that's the O_RDONLY flag, for example). The default is read-write, so if you want safety, this is your bestie π‘οΈ-v,--verboseβ cranks up the verbosity, aka more debug output. Lowkey useful when things get weird π-V,--versionβ prints the version string and then exits. π
π¦ NOTES π¦
The Report Target Port Groups command should be supported whenever the TPGS bits in a standard INQUIRY response are greater than zero. π [View with sg_inq utility.] π
π EXIT STATUS π
The exit status of sg_rtpg is 0 when it works. Otherwise, check out the sg3_utils(8) man page for the rest of the status codes π
π«Ά AUTHORS π«Ά
Written by Douglas Gilbert. Iconic. π₯
π REPORTING BUGS π
Found a bug? Report it to <dgilbert at interlog dot com>. Don't just vibe with it in silence π
πΈ COPYRIGHT πΈ
Copyright Β© 2004-2014 Christophe Varoqui and Douglas Gilbert. This software is distributed under a BSD-2-Clause license. There is NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Periodt π
π SEE ALSO π
sg_inq(sg3_utils) β¨
Okay that's the whole tea, bestie! π§ Version sg3_utils-1.39, May 2014. Stay iconic. π
π¦ where this page comes from
- alpine 3.24: sg3_utils-doc 1.48-r0 Β· BSD-2-Clause AND GPL-2.0-or-later
- arch rolling: sg3_utils 1.49-1 Β· GPL-2.0-or-later AND BSD-2-Clause
- centos-stream 10: sg3_utils 1.48-11.el10 Β· GPL-2.0-or-later AND BSD-2-Clause
- debian trixie: sg3-utils 1.48-3~deb13u1
- fedora 43: sg3_utils 1.48-10.fc43 Β· GPL-2.0-or-later AND BSD-2-Clause
- fedora 43: sg3_utils 1.48-6.fc43 Β· GPL-2.0-or-later AND BSD-2-Clause
- fedora 44: sg3_utils 1.48-10.fc44 Β· GPL-2.0-or-later AND BSD-2-Clause
- fedora 44: sg3_utils 1.48-8.fc44 Β· GPL-2.0-or-later AND BSD-2-Clause
- nixos 26.05: sg3_utils 1.48
- nixpkgs unstable: sg3_utils 1.49
- ubuntu questing: sg3-utils 1.48-2ubuntu1
- ubuntu resolute: sg3-utils 1.48-3ubuntu3
- ubuntu resolute: sg3-utils 1.48-3ubuntu3.2
- ubuntu stonking: sg3-utils 1.48-3ubuntu5
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms