summaryrefslogtreecommitdiffstats
path: root/sbin/scsi
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-08-24 08:50:25 +0000
committerjoerg <joerg@FreeBSD.org>1997-08-24 08:50:25 +0000
commit1bb3924f27c5b81d0e38ede68fe6c1678c2d867d (patch)
tree34c78bf6616385a915f98cad4ff460a41cfe6874 /sbin/scsi
parent3db440487a7afdf1a9290c3e38c1ea62731d85f7 (diff)
downloadFreeBSD-src-1bb3924f27c5b81d0e38ede68fe6c1678c2d867d.zip
FreeBSD-src-1bb3924f27c5b81d0e38ede68fe6c1678c2d867d.tar.gz
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
Diffstat (limited to 'sbin/scsi')
-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 dc9f6b2..f8d59bc 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
OpenPOWER on IntegriCloud