Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2007 15:42:25 -0400
From:      "Constantine A. Murenin" <cnst@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Cc:        Shteryana Shopova <syrinx@FreeBSD.org>, freebsd-arch@FreeBSD.org, "Constantine A. Murenin" <cnst@FreeBSD.org>
Subject:   soc2007/cnst-sensors update (was: Re: PERFORCE change 124277 for review)
Message-ID:  <46AB9C21.7010706@FreeBSD.org>
In-Reply-To: <200707281831.l6SIVKDW071679@repoman.freebsd.org>
References:  <200707281831.l6SIVKDW071679@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28/07/2007 14:31, Constantine A. Murenin wrote:

> http://perforce.freebsd.org/chv.cgi?CH=124277
> 
> Change 124277 by cnst@dale on 2007/07/28 18:30:44
> 
> 	add 'sensors' display to systat(1)

BTW, for those who are following this project: sensor_attach(9), 
sysctl(3), sensorsd(8) and systat(1) are now fully functional in regards 
to sensors framework -- here is a snippet of what I get from systat(1) 
on FreeBSD with the code that's already in p4:


Sensor                            Value      Status       Description
lm0.temp0                    59.00 degC
lm0.temp1                    46.50 degC
lm0.fan1                        917 RPM
lm0.volt0                     1.23 V DC                   (VCore)
lm0.volt1                    12.30 V DC                   (+12V)
lm0.volt2                     3.33 V DC                   (+3.3V)
lm0.volt3                     3.31 V DC                   (+3.3V)
...


The status field in this example is always empty because lm(4) doesn't 
keep the state of its sensors -- sensor status is mostly intended for 
logical drive sensors (i.e. raid) and ipmi(4)-style sensors, as well as 
any other hardware that is smart enough to know what acceptable values 
are. (Description field is optional, too.)

If the driver provides status for its sensors, then sensorsd(8) will 
automatically alert when the said status changes -- no additional 
configuration is required. For hardware that does not provide status, 
sensorsd(8) can be configured with specific limits for each sensor or 
for sensors of certain type. For more details, see sensorsd.conf(5).

P.S. Work on sysctl(8) is still ongoing, but the above parts are mostly 
done (although I still have a few plans on making them even better).

Cheers,
Constantine,
Google Summer of Code 2007 Student @ The FreeBSD Project. :)



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