| NVMECTL(8) | System Manager's Manual | NVMECTL(8) | 
nvmectl —
| nvmectl | devlist | 
| nvmectl | identify[-x[-v]] device_id | 
| nvmectl | logpage[-x]
      [-ppage_id]
      [-vvendor-string]
      [-b]
      device_id|namespace_id | 
| nvmectl | power[-l]
      [-s] [-ppower_state] [-wworkload_hint] device_id | 
| nvmectl | wdc cap-diag[-o-path_template]
      device_id | 
-l will list supported power states.
  -p will set the power state to specified value.
  -w will set workload value. With
  -s, the specified power state and workload value is
  saved, so it persists any autonomous transitions and resets. Support for
  saving the values is optional, and depends on the controller.
Specifying -p help
    will list all valid vendors and pages. -x will print
    the page as hex. -b will print the binary data for
    the page.
-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.
nvmectl devlistDisplay a list of NVMe controllers and namespaces along with their device nodes.
nvmectl identify nvme0Display a human-readable summary of the nvme0 IDENTIFY_CONTROLLER data.
nvmectl identify -x -v
  nvme0ns1Display an hexadecimal dump of the nvme0
    IDENTIFY_NAMESPACE data for namespace 1.
nvmectl logpage -p 1
  nvme0Display 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).
nvmectl logpage -p 0xc1 -v wdc
  nvme0Display a human-readable summary of the nvme0's wdc-specific advanced SMART data.
nvmectl logpage -p 1 -x
  nvme0Display a hexadecimal dump of the nvme0 controller's Error Information Log.
nvmectl logpage -p 0xcb -b nvme0 >
  /tmp/page-cb.binPrint the contents of vendor specific page 0xcb as binary data on standard out. Redirect it to a temporary file.
nvmectl power -l nvme0List all the current power modes.
nvmectl power -p 3 nvme0Set the current power mode.
nvmectl power nvme0Get the current power mode.
This man page was written by Jim Harris <jimharris@FreeBSD.org>.
| September 27, 2020 | NetBSD 10.1 |