From: Jeff.Lien@wdc.com (Jeffrey Lien) Date: Fri, 12 Oct 2018 15:50:35 +0000 Subject: [PATCH 2/2] nvme-cli: Add help text for wdc-plugin command vs-internal-log. Update help text for wdc-plugin command cap-diag. Message-ID: <1539359420-1447-1-git-send-email-jeff.lien@wdc.com> Signed-off-by: Jeff Lien --- Documentation/nvme-wdc-cap-diag.1 | 57 +- Documentation/nvme-wdc-cap-diag.html | 43 +- Documentation/nvme-wdc-cap-diag.txt | 16 +- Documentation/nvme-wdc-vs-internal-log.1 | 163 ++++++ Documentation/nvme-wdc-vs-internal-log.html | 859 ++++++++++++++++++++++++++++ Documentation/nvme-wdc-vs-internal-log.txt | 64 +++ 6 files changed, 1191 insertions(+), 11 deletions(-) create mode 100644 Documentation/nvme-wdc-vs-internal-log.1 create mode 100644 Documentation/nvme-wdc-vs-internal-log.html create mode 100644 Documentation/nvme-wdc-vs-internal-log.txt diff --git a/Documentation/nvme-wdc-cap-diag.1 b/Documentation/nvme-wdc-cap-diag.1 index d3bf080..2d9329e 100644 --- a/Documentation/nvme-wdc-cap-diag.1 +++ b/Documentation/nvme-wdc-cap-diag.1 @@ -1,13 +1,13 @@ '\" t .\" Title: nvme-wdc-cap-diag -.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] -.\" Generator: DocBook XSL Stylesheets vsnapshot -.\" Date: 09/05/2018 +.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] +.\" Generator: DocBook XSL Stylesheets v1.79.1 +.\" Date: 12/10/2017 .\" Manual: NVMe Manual .\" Source: NVMe .\" Language: English .\" -.TH "NVME\-WDC\-CAP\-DIAG" "1" "09/05/2018" "NVMe" "NVMe Manual" +.TH "NVME\-WDC\-CAP\-DIAG" "1" "12/10/2017" "NVMe" "NVMe Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -32,7 +32,7 @@ nvme-wdc-cap-diag \- Retrieve WDC device\*(Aqs diagnostic log and save to file\& .SH "SYNOPSIS" .sp .nf -\fInvme wdc cap\-diag\fR [\-\-output\-file=, \-o ] +\fInvme wdc cap\-diag\fR [\-\-output\-file=, \-o ] [\-\-transfer\-size=, \-s ] .fi .SH "DESCRIPTION" .sp @@ -47,6 +47,11 @@ This will only work on WDC devices supporting this feature\&. Results for any ot .RS 4 Output file; defaults to device serial number followed by "cap_diag" suffix .RE +.PP +\-s , \-\-transfer\-size= +.RS 4 +Transfer size; defaults to 0x10000 (65536 decimal) bytes +.RE .SH "EXAMPLES" .sp .RS 4 @@ -111,6 +116,48 @@ Gets the capture diagnostics log from the device and saves to defined file with .RE .\} .RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +Gets the capture diagnostics log from the device transferring the data in 64k chunks and saves to default file in current directory (e\&.g\&. STM00019F3F9internal_fw_log\&.bin): +.sp +.if n \{\ +.RS 4 +.\} +.nf +# nvme wdc cap\-diag /dev/nvme0 \-s 0x10000 +.fi +.if n \{\ +.RE +.\} +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +Gets the capture diagnostics log from the device transferring the data in 16k chunks and saves to default file in current directory (e\&.g\&. STM00019F3F9internal_fw_log\&.bin): +.sp +.if n \{\ +.RS 4 +.\} +.nf +# nvme wdc cap\-diag /dev/nvme0 \-s 16384 +.fi +.if n \{\ +.RE +.\} +.RE .SH "NVME" .sp Part of the nvme\-user suite\&. diff --git a/Documentation/nvme-wdc-cap-diag.html b/Documentation/nvme-wdc-cap-diag.html index eff2599..c3c388c 100644 --- a/Documentation/nvme-wdc-cap-diag.html +++ b/Documentation/nvme-wdc-cap-diag.html @@ -1,9 +1,10 @@ + - + nvme-wdc-cap-diag(1) + + + + +
+
+

SYNOPSIS

+
+
+
nvme wdc vs-internal-log <device> [--output-file=<FILE>, -o <FILE>] [--transfer-size=<SIZE>, -s <SIZE>]
+
+
+
+
+
+

DESCRIPTION

+
+

For the NVMe device given, sends the WDC Vendor Specific Internal Log request and saves +the result to a file.

+

The <device> parameter is mandatory NVMe character device (ex: /dev/nvme0).

+

This will only work on WDC devices supporting this feature. +Results for any other device are undefined.

+
+
+
+

OPTIONS

+
+
+
+-o <FILE> +
+
+--output-file=<FILE> +
+
+

+ Output file; defaults to device serial number followed by "internal_fw_log<date>_<time>.bin" suffix +

+
+
+-s <SIZE> +
+
+--transfer-size=<SIZE> +
+
+

+ Transfer size; defaults to 0x10000 (65536 decimal) bytes +

+
+
+
+
+
+

EXAMPLES

+
+
    +
  • +

    +Gets the internal firmware log from the device and saves to default file in current directory (e.g. STM00019F3F9_internal_fw_log_20171127_095704.bin): +

    +
    +
    +
    # nvme wdc vs-internal-log /dev/nvme0
    +
    +
  • +
  • +

    +Gets the internal firmware log from the device and saves to defined file in current directory (e.g. test.bin): +

    +
    +
    +
    # nvme wdc vs-internal-log /dev/nvme0 -o test.bin
    +
    +
  • +
  • +

    +Gets the internal firmware log from the device and saves to defined file with pathname (e.g. /tmp/test): +

    +
    +
    +
    # nvme wdc vs-internal-log /dev/nvme0 -o /tmp/test
    +
    +
  • +
  • +

    +Gets the internal firmware log from the device transferring the data in 64k chunks and saves to default file in current directory (e.g. STM00019F3F9_internal_fw_log_20171127_100754.bin): +

    +
    +
    +
    # nvme wdc vs-internal-log /dev/nvme0 -s 0x10000
    +
    +
  • +
  • +

    +Gets the internal firmware log from the device transferring the data in 16k chunks and saves to default file in current directory (e.g. STM00019F3F9_internal_fw_log_20171127_100950.bin): +

    +
    +
    +
    # nvme wdc vs-internal-log /dev/nvme0 -s 16384
    +
    +
  • +
+
+
+
+

NVME

+
+

Part of the nvme-user suite.

+
+
+
+

+ + + diff --git a/Documentation/nvme-wdc-vs-internal-log.txt b/Documentation/nvme-wdc-vs-internal-log.txt new file mode 100644 index 0000000..8a04863 --- /dev/null +++ b/Documentation/nvme-wdc-vs-internal-log.txt @@ -0,0 +1,64 @@ +nvme-wdc-vs-internal-log(1) +=========================== + +NAME +---- +nvme-wdc-vs-internal-log - Retrieve WDC device's internal firmware log and save to file. + +SYNOPSIS +-------- +[verse] +'nvme wdc vs-internal-log' [--output-file=, -o ] [--transfer-size=, -s ] + +DESCRIPTION +----------- + +For the NVMe device given, sends the WDC Vendor Specific Internal Log request and saves +the result to a file. + +The parameter is mandatory NVMe character device (ex: /dev/nvme0). + +This will only work on WDC devices supporting this feature. +Results for any other device are undefined. + +OPTIONS +------- +-o :: +--output-file=:: + Output file; defaults to device serial number followed by "_internal_fw_log__