p .Ss logpage The logpage command knows how to print log pages of various types. It also knows about vendor specific log pages from hgst/wdc and intel. Page 0xc1 for hgst/wdc contains the advanced smart information about the drive. Page 0xc1 is read latency stats for intel. Page 0xc2 is write latency stats for intel. Page 0xc5 is temperature stats for intel. Page 0xca is advanced smart information for intel.
p Specifying .Fl p c help will list all valid vendors and pages. .Fl x will print the page as hex. .Fl b will print the binary data for the page. .Ss wdc The various wdc command retrieve log data from the wdc/hgst drives. The .Fl o flag specifies a path template to use to output the files. Each file takes the path template (which defaults to nothing), appends the drive's serial number and the type of dump it is followed by .bin. These logs must be sent to the vendor for analysis. This tool only provides a way to extract them. .Sh EXAMPLES .Dl nvmectl devlist
p Display a list of NVMe controllers and namespaces along with their device nodes.
p .Dl nvmectl identify nvme0
p Display a human-readable summary of the nvme0 IDENTIFY_CONTROLLER data.
p .Dl nvmectl identify -x -v nvme0ns1
p
Display an hexadecimal dump of the nvme0
.Dv IDENTIFY_NAMESPACE
data for namespace 1.
.Pp
.Dl nvmectl perftest -n 32 -o read -s 512 -t 30 nvme0ns1
.Pp
Run a performance test on nvme0ns1 using 32 kernel threads for 30 seconds.
Each thread will issue a single 512 byte read command.
Results are printed to stdout when 30 seconds expires.
.Pp
.Dl nvmectl reset nvme0
.Pp
Perform a controller-level reset of the nvme0 controller.
p .Dl nvmectl logpage -p 1 nvme0
p Display a human-readable summary of the nvme0 controller's Error Information Log. Log pages defined by the NVMe specification include Error Information Log (ID=1), SMART/Health Information Log (ID=2), and Firmware Slot Log (ID=3).
p .Dl nvmectl logpage -p 0xc1 -v wdc nvme0
p Display a human-readable summary of the nvme0's wdc-specific advanced SMART data.
p .Dl nvmectl logpage -p 1 -x nvme0
p Display a hexadecimal dump of the nvme0 controller's Error Information Log.
p .Dl nvmectl logpage -p 0xcb -b nvme0 > /tmp/page-cb.bin
p
Print the contents of vendor specific page 0xcb as binary data on
standard out.
Redirect it to a temporary file.
.Pp
.Dl nvmectl firmware -s 2 -f /tmp/nvme_firmware nvme0
.Pp
Download the firmware image contained in "/tmp/nvme_firmware" to slot 2 of the
nvme0 controller, but do not activate the image.
.Pp
.Dl nvmectl firmware -s 4 -a nvme0
.Pp
Activate the firmware in slot 4 of the nvme0 controller on the next reset.
.Pp
.Dl nvmectl firmware -s 7 -f /tmp/nvme_firmware -a nvme0
.Pp
Download the firmware image contained in "/tmp/nvme_firmware" to slot 7 of the
nvme0 controller and activate it on the next reset.
p .Dl nvmectl power -l nvme0
p List all the current power modes.
p .Dl nvmectl power -p 3 nvme0
p Set the current power mode.
p .Dl nvmectl power nvme0
p Get the current power mode. .Sh HISTORY The nvmecontrol utility appeared in .Fx 9.2 . .Sh AUTHORS .An -nosplit nvmecontrol was developed by Intel and originally written by .An Jim Harris Aq Mt jimharris (at] FreeBSD.org .
p This man page was written by .An Jim Harris Aq Mt jimharris (at] FreeBSD.org .