NVMe CLI

View NVMe smart data from CLI in Linux:

Therefore install the package:

sudo apt install nvme-cli

Their GitHub-Repository can be found here: github.com/linux-nvme/nvme-cli.

Then use smart-log to view SMART data:

sudo nvme smart-log /path/to/device

/path/to/device can be /dev/nvme0

The output the can look like this:

Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning                        : 0
temperature                             : 55 C
available_spare                         : 100%
available_spare_threshold               : 10%
percentage_used                         : 0%
endurance group critical warning summary: 0
data_units_read                         : 18,361,709
data_units_written                      : 16,419,558
host_read_commands                      : 181,338,735
host_write_commands                     : 211,232,459
controller_busy_time                    : 552
power_cycles                            : 343
power_on_hours                          : 1,856
unsafe_shutdowns                        : 43
media_errors                            : 0
num_err_log_entries                     : 319
Warning Temperature Time                : 0
Critical Composite Temperature Time     : 0
Temperature Sensor 1           : 55 C
Temperature Sensor 2           : 59 C
Thermal Management T1 Trans Count       : 0
Thermal Management T2 Trans Count       : 0
Thermal Management T1 Total Time        : 0
Thermal Management T2 Total Time        : 0