sg_opcodes --version (return code: 0)
Version string: 0.45 20151219
sg_opcodes --help (return code: 0)
Usage: sg_opcodes [--alpha] [--compact] [--help] [--hex] [--mask]
[--no-inquiry] [--opcode=OP[,SA]] [--raw] [--rctd]
[--repd] [--sa=SA] [--tmf] [--unsorted] [--verbose]
[--version] DEVICE
where:
--alpha|-a output list of operation codes sorted alphabetically
--compact|-c more compact output
--help|-h print usage message then exit
--hex|-H output response in hex
--mask|-m and show cdb usage data (a mask) when all listed
--no-inquiry|-n don't output INQUIRY information
--opcode=OP|-o OP first byte of command to query
(decimal, prefix with '0x' for hex)
--opcode=OP,SA|-o OP,SA opcode (OP) and service action (SA)
(decimal, each prefix with '0x' for hex)
--raw|-r output response in binary to stdout
--rctd|-R set RCTD (return command timeout descriptor) bit
--repd|-q set Report Extended Parameter Data bit, with --tmf
--sa=SA|-s SA service action in addition to opcode
(decimal, prefix with '0x' for hex)
--tmf|-t output list of supported task management functions
--unsorted|-u output list of operation codes as is
(def: sort by opcode (then service action))
--verbose|-v increase verbosity
--version|-V print version string then exit
Performs a SCSI REPORT SUPPORTED OPERATION CODES or a REPORT SUPPORTED
TASK MANAGEMENT FUNCTIONS command.