sg_read_buffer --version (return code: 0)
version: 1.15 20160131
sg_read_buffer --help (return code: 0)
Usage: sg_read_buffer [--16] [--help] [--hex] [--id=ID] [--length=LEN]
[--long] [--mode=MO] [--offset=OFF] [--raw]
[--readonly] [--specific=MS] [--verbose] [--version]
DEVICE
where:
--16|-L issue READ BUFFER(16) (def: 10)
--help|-h print out usage message
--hex|-H print output in hex
--id=ID|-i ID buffer identifier (0 (default) to 255)
--length=LEN|-l LEN length in bytes to read (def: 4)
--long|-L issue READ BUFFER(16) (def: 10)
--mode=MO|-m MO read buffer mode, MO is number or acronym (def: 0)
--offset=OFF|-o OFF buffer offset (unit: bytes, def: 0)
--raw|-r output response to stdout
--specific=MS|-S MS mode specific value; 3 bit field (0 to 7)
--readonly|-R open DEVICE read-only (def: read-write)
--verbose|-v increase verbosity
--version|-V print version string and exit
Performs a SCSI READ BUFFER (10 or 16) command. Use '-m xxx' to list
available modes. Numbers given in options are decimal unless they have
a hex indicator (e.g. a leading '0x').