long
option format |
short
option format |
description |
--all |
-a |
list all known parameters for
given device. When this utility is invoked with no options then only
common parameters are output. |
--clear=<str> |
-c <str> |
clear (zero) parameter(s) in
<str>. The default action to clear can be overridden, see below. |
--command=<cmd> |
-C <cmd> |
perform <cmd> which is one
of: eject, load, ready, start, stop or unlock |
--dbd |
-B |
set the DBD (disable block
descriptors) bit in each MODE SENSE cdb |
--defaults |
-D |
fetch the default values for the
given mode page and use them to overwrite the current values. Note that
the saved values are not overwritten unless the "--save" option is also
given. |
--dummy |
-d |
when used with '--set' or
'--clear' does all the preparation and checks but bypasses the final
stage of sending the changes to the device. [It skips the MODE SELECT
command.] |
--enumerate |
-e |
fetch information from the
sdparm's internal tables. If a SCSI device name is given then it will
be ignored. May be used in conjunction with '-all', '--inquiry' and/or
'--page='. |
--flexible |
-f |
check mode sense responses for
sanity and if broken, try to fix them if possible. Also allows mode
pages whose peripheral type mismatches the given device to be listed. |
--get=<str> |
-g <str> |
fetch parameter(s) in <str> |
--help |
-h |
output a usage message then exits |
--hex |
-H |
rather than decode a (mode or
VPD) page, it is output in ASCII hex. If used with the '--get' option
then the parameter is output in hexadecimal. |
--inquiry |
-i |
fetch a VPD page, decode and
output it. If no '--page=' is given then the device identification VPD
page is fetched. If this option is not given then this utility defaults
to mode page(s). |
--long |
-l |
Add extra information to the
output. For example a line showing the setting of the WCE parameter
will have "Write cache enable" appended to it. |
--page=<pg[,spg]> |
-p <pg[,spg]> |
page (and optionally subpage) to
output or change. Argument may be either a number (assumed to be
decimal) or two numbers separated by a comma. If the number are
prefixed by "0x" they are assumed to be hexadecimal). Alternatively a
two letter (lower case) abbreviation can be given. |
--save |
-S |
also write changes to
corresponding "saved" mode page. The default action is to only make
changes to the current mode page. |
--set=<str> |
-s <str> |
set parameter(s) in <str>. To set a parameter is to make all its bits one. The default action to set can be overridden, see below. |
--six |
-6 |
use 6 byte cdbs for MODE SENSE
and MODE SELECT commands for getting and setting mode pages. The
default action is to use the 10 byte cdb variants. |
--transport=<tn> |
-t <tn> |
transport protocol identifier;
either a number or an abbreviation (e.g. "fcp", "spi" or "sas") |
--verbose |
-v |
increase verbosity of output.
May be used multiple times to increase verbosity further. |
--version |
-V |
print out the version and the
date of last code change then exits |
tarball |
source rpm | i386 rpm binary | debian
package |
|
version
0.90 |
sdparm-0.90.tgz |
sdparm-0.90-1.src.rpm |
sdparm-0.90-1.i386.rpm | sdparm_0.90-2_i386.deb |
version
0.91 |
sdparm-0.91.tgz | sdparm-0.91-1.src.rpm | sdparm-0.91-1.i386.rpm | sdparm_0.91-2_i386.deb |
version
0.92 |
sdparm-0.92.tgz | sdparm-0.92-1.src.rpm | sdparm-0.92-1.i386.rpm | sdparm_0.92-2_i386.deb |
version
0.93 |
sdparm-0.93.tgz | sdparm-0.93-1.src.rpm | sdparm-0.93-1.i386.rpm | sdparm_0.93-2_i386.deb |
version 0.94 | sdparm-0.94.tgz | sdparm-0.94-1.src.rpm | sdparm-0.94-1.i386.rpm | sdparm_0.94-2_i386.deb |
Return to main page.
Last updated: 28th July 2005