Usage: sg_opcodes [--alpha] [--compact] [--enumerate] [--help] [--hex] [--inhex=FN] [--json[=JO]] [--js-file=JFN] [--mask] [--mlu] [--no-inquiry] [--opcode=OP[,SA]] [--pdt=DT] [--raw] [--rctd] [--repd] [--rep-opts=RO] [--sa=SA] [--tmf] [--unsorted] [--verbose] [--version] DEVICE where: --alpha|-a output list of operation codes sorted alphabetically --compact|-c more compact output --enumerate|-e use '--opcode=' and '--pdt=' to look up name, ignore DEVICE --help|-h print usage message then exit --hex|-H output response in hex, use -HHH for hex suitable for later use of --inhex= option --inhex=FN|-i FN contents of file FN treated as hex and used instead of DEVICE which is ignored --json[=JO]|-j[=JO] output in JSON instead of plain text Use --json=? for JSON help --js-file=JFN|-J JFN JFN is a filename to which JSON output is written (def: stdout); truncates then writes --mask|-m show cdb usage data (a mask) when all listed --mlu|-M show MLU bit when all listed --no-inquiry|-n don't output INQUIRY information --opcode=OP[,SA]|-o OP[,SA] opcode (OP) and service action (SA) --pdt=DT|-p DT give peripheral device type for '--no-inquiry', '--enumerate' and '--inhex=FN' --raw|-r output response in binary to stdout unless --inhex=FN is given then FN is parsed as binary instead --rctd|-R set RCTD (return command timeout descriptor) bit --repd|-q set Report Extended Parameter Data bit, with --tmf --rep-opts=RO|-Q RO set Reporting Options field in cdb --sa=SA|-s SA service action in addition to opcode --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 --old|-O use old interface (use as first option) --version|-V print version string then exit Performs a SCSI REPORT SUPPORTED OPERATION CODES or a REPORT SUPPORTED TASK MANAGEMENT FUNCTIONS command. All values are in decimal by default, prefix with '0x' or add a trailing 'h' for hex numbers.