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