Usando nvme-cli, puedo obtener la temperatura de un Samsung 950 Pro con este comando:
nvme smart-log /dev/nvme0 | grep "^temperature"
También puede obtener otras informaciones:
nvme smart-log /dev/nvme0
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning : 0
temperature : 45 C
available_spare : 100%
available_spare_threshold : 10%
percentage_used : 0%
data_units_read : 3,020,387
data_units_written : 2,330,810
host_read_commands : 26,960,077
host_write_commands : 15,668,236
controller_busy_time : 65
power_cycles : 98
power_on_hours : 281
unsafe_shutdowns : 68
media_errors : 0
num_err_log_entries : 63
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Nota: uso del kernel 4.6.4
Para acceso de usuarios:
/ etc / sudoers
# For users group
%users ALL = NOPASSWD: nvme smart-log /dev/nvme0 | grep "^temperature"
# For all
ALL ALL = NOPASSWD: nvme smart-log /dev/nvme0 | grep "^temperature"