SG_RTPG(8)

πŸ“¦
version 1.49 Β· 3 versions
, in alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 to 1. ✨
  • -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 Β© 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