SG_REP_PIP(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

✨ NAME ✨

okay so bestie, this manual page is all about sg_rep_pip(8) πŸ’… It's a tool that sends a SCSI REPORT PROVISIONING INITIALIZATION PATTERN command, so you can see what it does. Iconic.


πŸŽ€ SYNOPSIS πŸŽ€

sg_rep_pip [--help] [--hex] [--maxlen=LEN] [--raw] [--readonly]
[--verbose] [--version] DEVICE

πŸ’– DESCRIPTION πŸ’–

okay so sg_rep_pip sends a SCSI REPORT PROVISIONING INITIALIZATION PATTERN command to DEVICE and then prints out whatever data comes back πŸ¦‹ this command is found in the SBC-4 draft standard, revision 21 (sbc4r21.pdf). the way that it's documented there is literally the source of truth, no cap ✨


🌸 OPTIONS 🌸

Arguments to long options are mandatory for short options as well. bestie, don't forget this one 🫢

  • -h, --help β€” outputs the usage message, then exits. the cheat sheet, basically πŸ“
  • -H, --hex β€” outputs the response in hexadecimal to stdout πŸ“
    • when you use it once, the whole response comes out as ASCII hexadecimal, and each line gets an address prefix (starting at 0) 🧚
    • when you use it twice, the whole response comes out as hexadecimal with no leading address on each line πŸ’œ
    • the default is the same as giving --hex once ✨
  • -m, --maxlen=LEN β€” LEN is the (maximum) response length in bytes πŸŽ€ it gets placed in the cdb's "allocation length" field. if you don't give it (or LEN is zero), then 8192 is used. the max allowed value of LEN is 1048576, so don't go past that 😭
  • -r, --raw β€” outputs the SCSI response (i.e. the data-out buffer) in binary, to stdout πŸ”₯
  • -R, --readonly β€” opens the DEVICE read-only (e.g. on Unix, with the O_RDONLY flag) πŸ™ˆ the default is to open it read-write, so use this one if you want to be extra safe πŸ›‘οΈ
  • -v, --verbose β€” increases the level of verbosity (i.e. debug output) πŸ”
  • -V, --version β€” prints the version string, then exits 🌈

🧚 EXIT STATUS 🧚

the exit status of sg_rep_pip is 0 when it's successful. otherwise, go check out the sg3_utils(8) man page for the rest of the story πŸ“–


πŸ‘‘ AUTHORS πŸ‘‘

Written by Douglas Gilbert. the queen of SCSI, honestly 🫑


🐞 REPORTING BUGS 🐞

if something's acting up, report bugs to <dgilbert at interlog dot com> πŸ’Œ


Copyright Β© 2020-2022 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 πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

  • sg3_utils(sg3_utils)

✨ okay bestie, that's the whole tea ✨ this page came from sg3_utils-1.48 (January 2022), so now you're officially a SCSI girlie πŸ’…πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from