aboutsummaryrefslogtreecommitdiff
path: root/doc/sg_vpd.8
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sg_vpd.8')
-rw-r--r--doc/sg_vpd.820
1 files changed, 12 insertions, 8 deletions
diff --git a/doc/sg_vpd.8 b/doc/sg_vpd.8
index bed417e8..cd0838d5 100644
--- a/doc/sg_vpd.8
+++ b/doc/sg_vpd.8
@@ -1,4 +1,4 @@
-.TH SG_VPD "8" "February 2014" "sg3_utils\-1.38" SG3_UTILS
+.TH SG_VPD "8" "March 2014" "sg3_utils\-1.38" SG3_UTILS
.SH NAME
sg_vpd \- fetch SCSI VPD page and/or decode its response
.SH SYNOPSIS
@@ -62,13 +62,14 @@ the latter case this option has the same effect as '\-\-quiet \-\-page=di_lu'.
.TP
\fB\-I\fR, \fB\-\-inhex\fR=\fIFN\fR
\fIFN\fR is expected to be a file name (or '\-' for stdin) which contains
-ASCII hexadecimal respresenting a VPD page (or a standard INQUIRY) response.
-This utility will then decode that response. It is preferable to also
-supply the \fI\-\-page=PG\fR option, if not this utulity will attempt
+ASCII hexadecimal or binary representing a VPD page (or a standard INQUIRY)
+response. This utility will then decode that response. It is preferable to
+also supply the \fI\-\-page=PG\fR option, if not this utility will attempt
to guess which VPD page (or standard INQUIRY) the response is associated
with. The hexadecimal should be arranged as 1 or 2 digits representing a
byte each of which is whitespace or comma separated. Anything from and
-including a hash mark to the end of line is ignored.
+including a hash mark to the end of line is ignored. If the \fI\-\-raw\fR
+option is also given then \fIFN\fR is treated as binary.
.TP
\fB\-l\fR, \fB\-\-long\fR
when decoding some VPD pages, give a little more output. For example the ATA
@@ -104,9 +105,12 @@ standard INQUIRY response is output. This option may also be used with the
suppress the amount of decoding output.
.TP
\fB\-r\fR, \fB\-\-raw\fR
-output requested VPD page in binary. The output should be piped to a
-file or another utility when this option is used. The binary is
-sent to stdout, and errors are sent to stderr.
+if not used with \fI\-\-inhex=FN\fR then output requested VPD page in binary.
+The output should be piped to a file or another utility when this option is
+used. The binary is sent to stdout, and errors are sent to stderr.
+.br
+if used with \fI\-\-inhex=FN\fR then the contents of \fIFN\fR is treated as
+binary.
.TP
\fB\-v\fR, \fB\-\-verbose\fR
increases the level or verbosity.