Closed bcspragu closed 1 year ago
The SDR record itself does not store current reading value for sensor. It can be separated get by IPMI Command GetSensorReading
.
But the value returned by GetSensorReading
is a raw value which means it's not aligned with Sensor Unit, so it needs to be converted.
After some thought, I added two extra fields SensorValue
and SensorStatus
to SDRFull and SDRCompact. SensorValue
has already been converted. It can be used directly with SensorUnit.
Try latest code (v0.4.0) to see if it helps.
Amazing, that worked perfectly! Thanks for your help
Hi there, and thanks for making this package!
The TL;DR is that
Sensor Reading
doesn't appear to be implemented, or I'm using it wrong. The rest of this issue is just explanation, but I think the real problem is that I was confusingSensor Reading
withNominal Reading
. Currently, Sensor Reading is hardcoded to zero, and I think this is the value I really want here. Are there any plans to implement this? If not, I'm happy to give it a shot and contribute a PR, any pointers would be appreciated.I've been using this to access IPMI on Dell M610 blade servers in this project, specifically here. One thing I've noticed is that result of
sdr.Full.ConvertReading(sdr.Full.NominalReadingRaw)
never changes, and the results of running the equivalentipmitool
command produce different output. For example:ipmitool -I lanplus -H <ip> -U <user> -P <pass> sensor get 'Ambient Temp'
produces:A (hopefully) equivalent invocation in Go:
This produces: