2025-02-16 11:09:01 +01:00
'\" t
2025-02-16 12:15:45 +01:00
. \" Title: nvme-ocp-smart-add-log
2025-02-16 11:09:01 +01:00
. \" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
. \" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
2025-03-20 08:10:44 +01:00
. \" Date: 03/17/2025
2025-02-16 11:09:01 +01:00
. \" Manual: NVMe Manual
. \" Source: NVMe
. \" Language: English
. \"
2025-03-20 08:10:44 +01:00
.TH "NVME\-OCP\-SMART\-AD" "1" "03/17/2025" "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"
2025-02-16 12:15:45 +01:00
nvme-ocp-smart-add-log \- Retrieves Extended SMART information of given OCP compliant device
2025-02-16 11:09:01 +01:00
.SH "SYNOPSIS"
.sp
.nf
2025-03-20 08:10:44 +01:00
\fI nvme ocp smart\- add\- log\fR <device> [\- \- output\- format=<fmt> | \- o <fmt>] [\- \- output\- format\- version=<version>]
2025-02-16 11:09:01 +01:00
.fi
.SH "DESCRIPTION"
.sp
2025-02-16 12:15:45 +01:00
For the NVMe device given, send a smart\- add\- log command and provide the additional smart log\& .
.sp
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0) or block device (ex: /dev/nvme0n1)\& .
.sp
This will only work on OCP compliant devices supporting this feature\& . Results for any other device are undefined\& .
.sp
2025-03-20 08:10:44 +01:00
EXPERIMENTAL\& . The \- \- output\- format\- version can be set to 2 to generate field names for the outputs that are easier to process via scripts\& . Note this is experimental and the field names are subject to change\& .
.sp
2025-02-16 12:15:45 +01:00
On success it returns 0, error code otherwise\& .
2025-02-16 11:09:01 +01:00
.SH "OPTIONS"
.PP
2025-02-16 12:25:41 +01:00
\- o <fmt>, \- \- output\- format=<fmt>
2025-02-16 11:09:01 +01:00
.RS 4
2025-02-16 12:15:45 +01:00
Set the reporting format to
\fI normal\fR
or
\fI json\fR \& . Only one output format can be used at a time\& . The default is normal\& .
2025-02-16 11:09:01 +01:00
.RE
2025-03-20 08:10:44 +01:00
.PP
\- \- output\- format\- version=<version>
.RS 4
Set the field labels in the reporting format to either
\fI 1\fR
(the original) or
\fI 2\fR \& . The default is 1\& . Note this is experimental\& .
.RE
2025-02-16 11:09:01 +01:00
.SH "EXAMPLES"
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2025-02-16 12:15:45 +01:00
Has the program issue a smart\- add\- log command to retrieve the 0xC0 log page\& .
2025-02-16 11:09:01 +01:00
.sp
.if n \{ \
.RS 4
. \}
.nf
2025-02-16 12:15:45 +01:00
# nvme ocp smart\- add\- log /dev/nvme0
2025-02-16 11:09:01 +01:00
.fi
.if n \{ \
.RE
. \}
.RE
.SH "NVME"
.sp
2025-02-16 12:15:45 +01:00
Part of the nvme\- user suite\& .