Make it explicit that arguments to -c are in hex, while other numbers are
in usual "C" notation. Also fixed the examples section. PR: 3313
This commit is contained in:
parent
3db440487a
commit
1bb3924f27
@ -39,7 +39,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\"
|
||||
.\" $Id: scsi.8,v 1.10 1997/03/19 22:42:02 mpp Exp $
|
||||
.\" $Id: scsi.8,v 1.11 1997/06/18 06:37:23 charnier Exp $
|
||||
.\"
|
||||
.Dd October 11, 1993
|
||||
.Dt SCSI 8
|
||||
@ -197,7 +197,12 @@ sets the command timeout in seconds. The default is two seconds.
|
||||
specifies the command as described in
|
||||
.Xr scsi 3 "."
|
||||
The additional arguments provide values for any variables
|
||||
specified in the command format.
|
||||
specified in the command format. Note that the arguments to the
|
||||
.Fl c
|
||||
option are hexadecimal numbers, while all normal arguments on the
|
||||
command-line are subject to the common
|
||||
.Dq C
|
||||
number notation.
|
||||
.Pp
|
||||
.Fl o
|
||||
.Ar count
|
||||
@ -228,21 +233,27 @@ can be specified as a hyphen ("-") to indicate that the
|
||||
.Ar count
|
||||
bytes of data input should be written to the standard output.
|
||||
.Sh EXAMPLES
|
||||
To verify that the device type for the disk /dev/rsd0c is 0
|
||||
(direct access device):
|
||||
.Bd -literal -offset
|
||||
root# scsi -f /dev/rsd0c -c "12 0 0 0 64 0" -i 64 "*b3 b5"
|
||||
To verify that the device type for the disk
|
||||
.Pa /dev/rsd0c
|
||||
is 0 (direct access device):
|
||||
.Bd -literal
|
||||
root# scsi -f /dev/rsd0c -c "12 0 0 0 40 0" -i 64 "*b3 b5"
|
||||
0
|
||||
.Ed
|
||||
.Pp
|
||||
To do an inquiry to /dev/rsd2c:
|
||||
.Bd -literal -offset
|
||||
root# scsi -f /dev/rsd2c -c "12 0 0 0 64 0" -i 64 "s8 z8 z16 z4"
|
||||
To do an inquiry to
|
||||
.Pa /dev/rsd2c :
|
||||
.Bd -literal
|
||||
root# scsi -f /dev/rsd2c -c "12 0 0 0 v 0" 0x40 -i 64 "s8 z8 z16 z4"
|
||||
FUJITSU M2654S-512 010P
|
||||
.Ed
|
||||
.Pp
|
||||
To edit mode page 1 on /dev/rsd2c, and store it permanently on the
|
||||
To edit mode page 1 (the Read-Write Error Recovery Page)
|
||||
on
|
||||
.Pa /dev/rsd2c ,
|
||||
and store it permanently on the
|
||||
drive:
|
||||
.Bd -literal -offset
|
||||
.Bd -literal
|
||||
root# scsi -f /dev/rsd2c -m 1 -e -P 3
|
||||
.Ed
|
||||
.Pp
|
||||
|
Loading…
x
Reference in New Issue
Block a user