Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2018 17:24:37 +0000
From:      Carmel NY <carmel_ny@outlook.com>
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Different temperature reports
Message-ID:  <SN1PR20MB210943EF9E361834CE68A8C980C90@SN1PR20MB2109.namprd20.prod.outlook.com>

next in thread | raw e-mail | index | archive | help
Why would sysctl and smartctl report different temperatures? Smartctl is
reporting 30C and sysctl is showing 40.1C.

#! /usr/bin/env bash

TP=3D$(/usr/local/sbin/smartctl -a /dev/ada0 | grep Temp | awk -F " " '{pri=
ntf "%d",$10}')

printf "%s\n\n" "${TP}"

TP2=3D$(/sbin/sysctl -a | grep -i hw.acpi.thermal.tz0.temperature | awk '{p=
rint substr($2,0,5)}')

printf "%s\n\n" "${TP2}"

exit

Both temperatures are in Celsius.

--=20
Carmel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SN1PR20MB210943EF9E361834CE68A8C980C90>