Usage: sg_stpg [--active] [--help] [--hex] [--offline] [--optimized] [--raw]
[--standby] [--state=S,S...] [--tp=P,P...] [--unavailable]
[--verbose] [--version] DEVICE
where:
--active|-a set asymm. access state to active/non-optimized
--help|-h print out usage message
--hex|-H print out report response in hex, then exit
--offline|-l|-O set asymm. access state to offline, takes relative
target port id, rather than target port group id
--optimized|-o set asymm. access state to active/optimized
--raw|-r output report response in binary to stdout, then exit
--standby|-s set asymm. access state to standby
--state=S,S.. |-S S,S... list of states (values or acronyms)
--tp=P,P.. |-t P,P... list of target port group identifiers,
or relative target port identifiers
--unavailable|-u set asymm. access state to unavailable
--verbose|-v increase verbosity
--version|-V print version string and exit
Performs a SCSI SET TARGET PORT GROUPS command
Options (12)
| Option | Description | Source |
|---|
--state, -S S | specifies a comma separated list (one element of more) of states. | help + man |
--tp, -t P | list of target port group identifiers, or relative target port identifiers | help + man |
-a, --active | set active/non-optimized state. (in the manual page but not in --help) | man |
-h, --help | output the usage message then exit. (in the manual page but not in --help) | man |
-H, --hex | output response to the REPORT TARGET PORT GROUPS command in hex then exit. (in the manual page but not in --help) | man |
-O, -l, --offline | set offline state. (in the manual page but not in --help) | man |
-o, --optimized | set active/optimized state. (in the manual page but not in --help) | man |
-r, --raw | output response to the REPORT TARGET PORT GROUPS command in binary to stdout then exit. (in the manual page but not in --help) | man |
-s, --standby | set standby state. (in the manual page but not in --help) | man |
-u, --unavailable | set unavailable state. (in the manual page but not in --help) | man |
-v, --verbose | increase the level of verbosity, (i.e. debug output). (in the manual page but not in --help) | man |
-V, --version | print the version string and then exit. (in the manual page but not in --help) | man |
Exit status (1) from the manual page
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.