Retrieve Standard Logs With NVMe*-CLI

Commands To View And Export NVMe SSD Text Logs

Summary

NVMe SSDs have a variety of logs. Which ones to get and how to pull them vary.

  • Here is how to pull binary logs with NVMe-CLI.

Resolution

These commands require the NVMe-CLI and are only supported by NVMe SSDs.

NOTE
  • Be sure to reference the correct device.
    • Text examples default to /dev/nvme0
  • Add " > logName.txt" to export text output to a file.

NVMe Error Log

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme error-log /dev/nvme0

Firmware Log

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme fw-log /dev/nvme0

SMART Log

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme smart-log /dev/nvme0

Pull SMART with Solidigm Tools

Additional SMART Log

Replace solidigm with intel, if using nvme-cli v2.0 or older.

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme solidigm smart-log-add /dev/nvme0

Pull SMART with Solidigm Tools

OCP SMART Log

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme ocp smart-add-log /dev/nvme0

OCP Error Recovery Log

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme ocp error-recovery-log /dev/nvme0

Vendor Specific Logs

  1. Open the CLI as admin.[LINK]
  2. Run the commands:
    • nvme get-log /dev/nvme0 -i 197 -l 512
    • nvme get-log /dev/nvme0 -i 202 -l 512

Identify Controller

If nvme-cli v2.1 or newer:

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme solidigm id-ctrl /dev/nvme0

If nvme-cli v2.0 or older:

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme intel id-ctrl /dev/nvme0

This non-plugin pulls most of the controller info.
The two above have additional lines at the end.

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme id-ctrl /dev/nvme0

Identify Namespace

  1. Open the CLI as admin.[LINK]
  2. Run the command:
    • nvme id-ns /dev/nvme0n1

Questions? Check out our Community Forum for help.

Issues? Contact Solidigm™ Customer Support:
[Chinese] [English] [German] [Japanese] [Korean]

How informative was this article?


    Form submission failed!

    Success