On 07/05/2018 02:29 PM, Udaya Puvvadi wrote:
Hi,
I want to poll the Fans data from HP G7 servers, and since HP
configured these servers as discrete sensors, compared to threshold
sensors.
I wasn't able to get the data using ipmi_sensor_id_get_reading() function.
I was thinking of polling the data by sending the raw commands to mc,
and parsing the output.
However, I couldn't get any useful data.
The commands for the function as follows,
cmd.netfn=IPMI_SENSOR_EVENT_NETFN;
cmd.cmd=IPMI_GET_SENSOR_READING_CMD;
Can someone help me with this?
What should be the return type for the callback data? And how to parse it.
If it's a discrete sensor, there's not much you can do. It will return
a single bit. You can't change what the firmware does by sending it a
different command.
I would guess you are getting just the sensor bits, but I'd have to see
the actual data. Maybe it works and the SDRs are lying about it being
discrete?
Parsing the data requires looking at the spec for what comes back from
that message. For that command it's pretty simple. The headers are
stripped and the data starts with the error code in the first byte.
-corey
Thanks,
Udaya Puvvadi
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openipmi-developer mailing list
Openipmi-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openipmi-developer
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openipmi-developer mailing list
Openipmi-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openipmi-developer