Different temperature reports
Carmel NY
carmel_ny at outlook.com
Sun Nov 4 17:24:40 UTC 2018
Why would sysctl and smartctl report different temperatures? Smartctl is
reporting 30C and sysctl is showing 40.1C.
#! /usr/bin/env bash
TP=$(/usr/local/sbin/smartctl -a /dev/ada0 | grep Temp | awk -F " " '{printf "%d",$10}')
printf "%s\n\n" "${TP}"
TP2=$(/sbin/sysctl -a | grep -i hw.acpi.thermal.tz0.temperature | awk '{print substr($2,0,5)}')
printf "%s\n\n" "${TP2}"
exit
Both temperatures are in Celsius.
--
Carmel
More information about the freebsd-questions
mailing list