Linux find NVMe SSD temperature using command line

Linux find NVMe SSD temperature using command line

To find the temperature of an NVMe solid-state drive (SSD) on a Linux system using the command line, you can use the nvme command. This command is used to manage NVMe devices and provides a number of subcommands for different tasks.

To find the temperature of an NVMe SSD, you can use the temperature subcommand. For example:

refer‮ttual:ot ‬uri.com
sudo nvme smart-log /dev/nvme0 | grep temperature

This will output the current temperature of the NVMe SSD, as well as the critical warning temperature and the highest temperature recorded by the device.

Alternatively, you can use the smart-log subcommand to retrieve the Self-Monitoring, Analysis, and Reporting Technology (SMART) log for the NVMe SSD, which includes a variety of performance and health-related metrics, including temperature. To view the SMART log, you can use the following command:

sudo nvme smart-log /dev/nvme0

This will output a detailed report of the SMART log for the NVMe SSD. You can then use the grep command to filter the output for the temperature values.

Created Time:2017-10-29 22:09:02  Author:lautturi