From 5ba2664a06e6b1b811174b043db1165026158b44 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Tue, 11 Mar 2014 20:30:34 +0000 Subject: sg_inq+sg_vpd: --inhex=FN --raw reads response in binary git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@559 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- doc/sg_vpd.8 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'doc/sg_vpd.8') 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. -- cgit v1.2.3