summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-08-24 08:50:25 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-08-24 08:50:25 +0000
commitca4da38dc6b025b260ac492773f4a3163f0bddcf (patch)
tree6cdcaf39695d32d91c0d16e1c7bdf40e8ef73d59
parent7f65d264044f87fb885fa5ca9eb94ffd09a723d5 (diff)
Notes
-rw-r--r--sbin/scsi/scsi.833
1 files changed, 22 insertions, 11 deletions
diff --git a/sbin/scsi/scsi.8 b/sbin/scsi/scsi.8
index dc9f6b25afef..f8d59bce9779 100644
--- a/sbin/scsi/scsi.8
+++ b/sbin/scsi/scsi.8
@@ -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