2025-02-16 11:09:01 +01:00
'\" t
. \" Title: nvme-wdc-vs-smart-add-log
. \" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
. \" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
2025-02-16 12:28:30 +01:00
. \" Date: 10/31/2024
2025-02-16 11:09:01 +01:00
. \" Manual: NVMe Manual
. \" Source: NVMe
. \" Language: English
. \"
2025-02-16 12:28:30 +01:00
.TH "NVME\-WDC\-VS\-SMART" "1" "10/31/2024" "NVMe" "NVMe Manual"
2025-02-16 11:09:01 +01:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
nvme-wdc-vs-smart-add-log \- Send NVMe WDC vs\- smart\- add\- log Vendor Unique Command, return result
.SH "SYNOPSIS"
.sp
.nf
2025-02-16 12:13:48 +01:00
\fI nvme wdc vs\- smart\- add\- log\fR <device> [\- \- interval=<NUM>, \- i <NUM>]
[\- \- output\- format=<normal|json> \- o <normal|json>]
[\- \- log\- page\- version=<NUM>, \- l <NUM>]
[\- \- log\- page\- mask=<LIST>, \- p <LIST>]
[\- \- namespace\- id=<nsid> | \- n <nsid>]
2025-02-16 11:09:01 +01:00
.fi
.SH "DESCRIPTION"
.sp
2025-02-16 11:31:10 +01:00
For the NVMe device given, send a Vendor Unique WDC vs\- smart\- add\- log command and provide the additional smart log\& .
2025-02-16 11:09:01 +01:00
.sp
2025-02-16 11:31:10 +01:00
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0) or block device (ex: /dev/nvme0n1)\& .
2025-02-16 11:09:01 +01:00
.sp
This will only work on WDC devices supporting this feature\& . Results for any other device are undefined\& .
.sp
On success it returns 0, error code otherwise\& .
.SH "OPTIONS"
.PP
\- i <NUM>, \- \- interval=<NUM>
.RS 4
2025-02-16 11:31:10 +01:00
Return the statistics from specific interval, defaults to 14\& . This parameter is only valid for the 0xC1 log page and ignored for all other log pages\& .
2025-02-16 11:09:01 +01:00
.RE
.PP
2025-02-16 12:25:41 +01:00
\- o <fmt>, \- \- output\- format=<fmt>
2025-02-16 11:09:01 +01:00
.RS 4
Set the reporting format to
\fI normal\fR , or
\fI json\fR \& . Only one output format can be used at a time\& . Default is normal\& .
.RE
2025-02-16 11:31:10 +01:00
.PP
\- l <NUM>, \- \- log\- page\- version=<NUM>
.RS 4
Log Page Version: 0 = vendor, 1 = WDC\& . This parameter is only valid for the 0xC0 log page and ignored for all other log pages\& .
.RE
.PP
\- p <LIST>, \- \- log\- page\- mask=<LIST>
.RS 4
Supply a comma separated list of desired log pages to display\& . The possible values are 0xc0, 0xc1, 0xca, 0xd0\& . Note: Not all pages are supported on all drives\& . The default is to display all supported log pages\& .
.RE
2025-02-16 12:13:48 +01:00
.PP
\- n <nsid>, \- \- namespace\- id=<nsid>
.RS 4
Sets the command\(cq s nsid value to the given nsid\& . Defaults to 0xffffffff if not given\& . This option may not affect anything depending on the log page, which may or may not be specific to a namespace\& .
.RE
2025-02-16 11:09:01 +01:00
.sp
Valid Interval values and description :\-
.TS
allbox tab(:);
ltB ltB.
T{
Value
T}:T{
Description
T}
.T &
lt lt
lt lt
lt lt
lt lt
lt lt.
T{
.sp
\fB 1\fR
T}:T{
.sp
Most recent five (5) minute accumulated set\& .
T}
T{
.sp
\fB 2\- 12\fR
T}:T{
.sp
Previous five (5) minute accumulated sets\& .
T}
T{
.sp
\fB 13\fR
T}:T{
.sp
The accumulated total of sets 1 through 12 that contain the previous hour of accumulated statistics\& .
T}
T{
.sp
\fB 14\fR
T}:T{
.sp
The statistical set accumulated since power\- up\& .
T}
T{
.sp
\fB 15\fR
T}:T{
.sp
The statistical set accumulated during the entire lifetime of the device\& .
T}
.TE
.sp 1
2025-02-16 11:31:10 +01:00
.SH "EXAMPLES"
2025-02-16 11:09:01 +01:00
.sp
2025-02-16 11:31:10 +01:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
Has the program issue WDC vs\- smart\- add\- log Vendor Unique Command with default interval (14) :
2025-02-16 11:09:01 +01:00
.sp
2025-02-16 11:31:10 +01:00
.if n \{ \
.RS 4
. \}
.nf
# nvme wdc vs\- smart\- add\- log /dev/nvme0
.fi
.if n \{ \
.RE
. \}
.RE
2025-02-16 11:09:01 +01:00
.sp
2025-02-16 11:31:10 +01:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
Has the program issue WDC vs\- smart\- add\- log Vendor Unique Command for just the 0xCA log page :
2025-02-16 11:09:01 +01:00
.sp
2025-02-16 11:31:10 +01:00
.if n \{ \
.RS 4
. \}
.nf
# nvme wdc vs\- smart\- add\- log /dev/nvme0 \- p 0xCA
.fi
.if n \{ \
.RE
. \}
.RE
2025-02-16 11:09:01 +01:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2025-02-16 11:31:10 +01:00
Has the program issue WDC vs\- smart\- add\- log Vendor Unique Command for 0xC0 and 0xCA log pages :
2025-02-16 11:09:01 +01:00
.sp
.if n \{ \
.RS 4
. \}
.nf
2025-02-16 11:31:10 +01:00
# nvme wdc vs\- smart\- add\- log /dev/nvme0 \- p 0xCA,0xC0
2025-02-16 11:09:01 +01:00
.fi
.if n \{ \
.RE
. \}
.RE
.SH "NVME"
.sp
Part of the nvme\- user suite\& .