sdparm --version (return code: 0)
version: 1.08 20130606 [svn: r215]
sdparm --help (return code: 0)
Usage: sdparm [--all] [--clear=STR] [--command=CMD] [--dbd] [--defaults]
[--dummy] [--flexible] [--get=STR] [--help] [--hex] [--inquiry]
[--long] [--num-desc] [--page=PG[,SPG]] [--quiet] [--readonly]
[--save] [--set=STR] [--six] [--transport=TN] [--vendor=VN]
[--verbose] [--version] DEVICE [DEVICE...]
sdparm --enumerate [--all] [--inquiry] [--long] [--page=PG[,SPG]]
[--transport=TN] [--vendor=VN]
where:
--all | -a list all known fields for given device
--clear=STR | -c STR clear (zero) field value(s)
--command=CMD | -C CMD perform CMD (e.g. 'eject')
--dbd | -B set DBD bit in mode sense cdb
--defaults | -D set a mode page to its default values
--dummy | -d don't write back modified mode page
--enumerate | -e list known pages and fields (ignore device)
--flexible | -f compensate for common errors, relax some checks
--get=STR | -g STR get (fetch) field value(s)
--help | -h print out usage message
--hex | -H output in hex rather than name/value pairs
--inquiry | -i output INQUIRY VPD page(s) (def: mode page(s))
use --page=PG for VPD number (-1 for std inq)
--long | -l add description to field output
--num-desc | -n report number of mode page descriptors
--page=PG[,SPG] | -p PG[,SPG] page (and optionally subpage) number
[or abbrev] to output, change or enumerate
--quiet | -q suppress device vendor/product/revision string line
--readonly | -r force read-only open of DEVICE (def: depends
on operation). Mainly for ATA disks
--save | -S place mode changes in saved page as well
--set=STR | -s STR set field value(s)
--six | -6 use 6 byte SCSI mode cdbs (def: 10 byte)
--transport=TN | -t TN transport protocol number [or abbrev]
--vendor=VN | -M VN vendor (manufacturer) number [or abbrev]
--verbose | -v increase verbosity
--version | -V print version string and exit
View or change SCSI mode page fields (e.g. of a disk or CD/DVD drive).
STR can be <acronym>[=val] or <start_byte>:<start_bit>:<num_bits>[=val].