2012/2/24 Dinh Khac Thanh <thanhdk@...>:
> I am working on a monitoring application that needs to get sensor
> information via IPMI every 10 seconds. I have skimmed through the source
> code for ipmi-sensors to learn how to use freeipmi.
> My question is: If I am using the same IPMI session to get sensor data, do I
> need to recreate the SDR cache every time before reading the data?
I believe not. The cache is checked before real ipmi traffic, and it's
a noop when the cache exists and is up to date. There is one sdr cache
per ipmi node, which defaults to
The logic resides in common code path defined in
which is called by run_cmd_args(), which in turn called by
_ipmi_sensors(). You can find _ipmi_sensors as callback in main
function. All of them are in ipmi-sensors/ipmi-sensors.c, in the