aboutsummaryrefslogtreecommitdiff
path: root/doc/sg_inq.8
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2010-09-07 00:40:19 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2010-09-07 00:40:19 +0000
commitda5a89d37ebba0d5bddfda5bf2dd008a8bfc380a (patch)
tree270435c9ef4fb7742304a4a7aba45421835a03a4 /doc/sg_inq.8
parent9a0c2071489db6fe7c20b0edfb87be1b2e47da57 (diff)
downloadsg3_utils-da5a89d37ebba0d5bddfda5bf2dd008a8bfc380a.tar.gz
sg3_utils man page: add sections on OS device names
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@350 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'doc/sg_inq.8')
-rw-r--r--doc/sg_inq.827
1 files changed, 26 insertions, 1 deletions
diff --git a/doc/sg_inq.8 b/doc/sg_inq.8
index 15d457d0..6962da1b 100644
--- a/doc/sg_inq.8
+++ b/doc/sg_inq.8
@@ -1,4 +1,4 @@
-.TH SG_INQ "8" "February 2010" "sg3_utils\-1.29" SG3_UTILS
+.TH SG_INQ "8" "September 2010" "sg3_utils\-1.30" SG3_UTILS
.SH NAME
sg_inq \- sends a SCSI INQUIRY or ATA IDENTIFY (PACKET) DEVICE command
and outputs the response
@@ -324,6 +324,31 @@ Equivalent to '\-\-page=ei' in the main description.
.TP
\fB\-?\fR
output usage message and exit. Ignore all other parameters.
+.SH EXAMPLES
+The examples in this page use Linux device names. For suitable device
+names in other supported Operating Systems see the sg3_utils(8) man page.
+.PP
+To view the standard inquiry response use without options:
+.PP
+ sg_inq /dev/sda
+.PP
+Some SCSI devices include version descriptors indicating the various
+SCSI standards and drafts they support. They can be viewed with:
+.PP
+ sg_inq -d /dev/sda
+.PP
+Modern SCSI devices include Vital Product Data (VPD)pages which can be
+viewed with the SCSI INQUIRY command. To list the supported VPD
+pages (but not their contents) try:
+.PP
+ sg_inq -e /dev/sda
+.PP
+Some VPD pages can be read with the sg_inq utility but a newer utility
+called sg_vpd specializes in showing their contents. The sdparm utility
+can also be used to show the contents of VPD pages.
+.PP
+Further examples of sg_inq together with some typical output can be found
+on http://sg.danny.cz/sg/sg3_utils.html web page.
.SH AUTHOR
Written by Doug Gilbert
.SH "REPORTING BUGS"