Re: net-snmp 5.2.2 and LM-SENSORS-MIB on Solaris 9 [SOLVED]

Raphaël 'SurcouF' Bordet <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Le samedi 08 juillet 2006 à 00:41 +0200, Raphaël 'SurcouF' Bordet a
écrit :
> Hi, 
> 
> I'm currently testing a custom package of net-snmp 5.2.2 (5.3.0.1 work
> fine but not ucd-snmp/lm-sensors module) with ucd-snmp/lm-sensors module
> compiled in and on solaris 2.9.
> I'm able to query snmpd for lmTempSensors but I can't understand the
> return value for lmTempSensorValues : 
> 
> $ snmpwalk -v 1 -c public localhost lmTempSensors
> LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 0
> LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 1
> LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 2
> LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: mb_p0_t_core
> LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: mb_p1_t_core
> LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: mb_t_enc
> LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 3370341
> LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 2780517
> LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 1142117
> ---8<---
> 
> According to LM-SENSORS-MIB, this value is exprimed in "mC".
> But I can't believe the temperature can be hotter than 100°C !
> 
> And, if I asked to prtdiag or prtpicl (I've a SunFire v210), theses
> tools are reporting 55, 46 and 17°C for theses sensors. 

Hi again, 

I've asked to an partner from SUN Microsystems and he was successfully
converted theses values in 5 minutes only !
I'll try to explain his method (perhaps a corporate method) : 

First, if you convert values from net-snmp in "hexa", the two lasts
octets are always "6D65". For "mb_t_enc", the conversion is "116D65". My
partner suggest to soustract "6D65" from every values in decimal
operation. In decimal base, "6D65" = 28005.
The new value for "mb_t_enc" is now 1114112.
Then, he has divided this new value by 65536 and we have : 
 1142117 - 28005 / 65536 = 17

Best regards,

-- 
Raphaël 'SurcouF' Bordet
http://debianfr.net/ | surcouf at debianfr dot net



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.