[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeipmi-devel] Recreating SDR cache before reading sensors informa
From: |
Albert Chu |
Subject: |
Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information |
Date: |
Fri, 24 Feb 2012 14:45:35 -0800 |
Hi Dinh,
Sorry that the information is hidden a bit deep in the manpages (there's
a lot of stuff in IPMI), but ...
----
This tool requires access to the sensor data repository (SDR) cache for
general operation. By default, SDR data will be downloaded and cached
on the local machine. The following options apply to the SDR cache.
----
Al
On Fri, 2012-02-24 at 05:12 -0800, Kaiwang Chen wrote:
> 2012/2/24 Dinh Khac Thanh <address@hidden>:
> > Hi,
> >
> > 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
> ~/.freeipmi/sdr-cache/sdr-cache-<localhost>.<ipminode>
>
> The logic resides in common code path defined in
> common/toolsdr/tool-sdr-cache-common.c:sdr_cache_create_and_load(),
> 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
> trunk(revision 8603).
>
>
> >
> > Best regards
> > Thanh
> >
> > _______________________________________________
> > Freeipmi-devel mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/freeipmi-devel
> >
>
> Thanks,
> Kaiwang
>
> _______________________________________________
> Freeipmi-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/freeipmi-devel
--
Albert Chu
address@hidden
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
- [Freeipmi-devel] Recreating SDR cache before reading sensors information, Dinh Khac Thanh, 2012/02/24
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information, Kaiwang Chen, 2012/02/24
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information,
Albert Chu <=
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information, Dinh Khac Thanh, 2012/02/27
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information, Dinh Khac Thanh, 2012/02/27
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information, Kaiwang Chen, 2012/02/27
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information, Dinh Khac Thanh, 2012/02/27
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information, Dinh Khac Thanh, 2012/02/27
- Re: [Freeipmi-devel] Recreating SDR cache before reading sensors information, Al Chu, 2012/02/27