summaryrefslogtreecommitdiffstats
path: root/sbin/scsi
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-29 21:08:33 +0000
committerbrian <brian@FreeBSD.org>1997-12-29 21:08:33 +0000
commitc38e16bb3b5d09bb3a3717545baa500e4b506d09 (patch)
tree673694455950fdd0facc4277238dc0cfa2ddc9e9 /sbin/scsi
parent6197b3c485c99e23fc74bf8b81d5788e52e4570a (diff)
downloadFreeBSD-src-c38e16bb3b5d09bb3a3717545baa500e4b506d09.zip
FreeBSD-src-c38e16bb3b5d09bb3a3717545baa500e4b506d09.tar.gz
Add a "scsi -f /dev/ssc -p" example and xref ssc(4).
Make the other examples prettier.
Diffstat (limited to 'sbin/scsi')
-rw-r--r--sbin/scsi/scsi.823
1 files changed, 14 insertions, 9 deletions
diff --git a/sbin/scsi/scsi.8 b/sbin/scsi/scsi.8
index 3bccae0..b3a8f16 100644
--- a/sbin/scsi/scsi.8
+++ b/sbin/scsi/scsi.8
@@ -39,7 +39,7 @@
.\" SUCH DAMAGE.
.\"
.\"
-.\" $Id: scsi.8,v 1.13 1997/12/19 14:14:26 brian Exp $
+.\" $Id: scsi.8,v 1.14 1997/12/29 15:17:57 brian Exp $
.\"
.Dd October 11, 1993
.Dt SCSI 8
@@ -244,16 +244,15 @@ bytes of data input should be written to the standard output.
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
+.Bd -literal -offset indent
+root# scsi -f /dev/rsd0c -c "12 0 0 0 40 0" -i 64 "*b3 b5" 0
.Ed
.Pp
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
+.Bd -literal -offset indent
+root# scsi -f /dev/rsd2c -c "12 0 0 0 v 0" 0x40 -i 64 \e
+"s8 z8 z16 z4" FUJITSU M2654S-512 010P
.Ed
.Pp
To edit mode page 1 (the Read-Write Error Recovery Page)
@@ -261,10 +260,15 @@ on
.Pa /dev/rsd2c ,
and store it permanently on the
drive:
-.Bd -literal
+.Bd -literal -offset indent
root# scsi -f /dev/rsd2c -m 1 -e -P 3
.Ed
.Pp
+To simply re-probe the first scsi bus:
+.Bd -literal -offset indent
+root# scsi -f /dev/ssc -p
+.Ed
+.Pp
.Sh ENVIRONMENT
The
.Ev SU_DEBUG_OUTPUT
@@ -288,7 +292,8 @@ The
variable determines the editor to use for the mode editor.
.Sh SEE ALSO
.Xr scsi 3 ,
-.Xr scsi 4
+.Xr scsi 4 ,
+.Xr ssc 4
.Sh BUGS
.Pp
Some devices respond to an inquiry for all LUNS. This will cause them
OpenPOWER on IntegriCloud