[External] Re: Question about sensor number access

Ivan Li11 rli11 at lenovo.com
Thu Aug 15 19:05:32 AEST 2019


Hi Jason,

Thanks your great support
.
I have an idea that create JSON file including threshold sensor number and sensor name mapping table for phosphor-sel-logger , and use sensor name to map the related sensor number with that JSON file when threshold sensor SEL log is generated.
Please help to advise it.

Thanks,
Ivan
-----Original Message-----
From: openbmc <openbmc-bounces+rli11=lenovo.com at lists.ozlabs.org> On Behalf Of Bills, Jason M
Sent: Tuesday, August 13, 2019 2:57 AM
To: openbmc at lists.ozlabs.org
Subject: [External] Re: Question about sensor number access


On 8/12/2019 9:08 AM, Ivan Li11 wrote:
> Hi Team,
> 
> I have a question about sensor number.
> 
> As far as I know, "phosphor-host-ipmid" will parse "ipmi-sensors.yaml" 
> and then store these sensors info(sensor number and sensor type, etc) 
> in ipmid.
> 
> May I know if another daemon(e.g. phosphor-sel-logger) needs sensor 
> number info, is there any suggested method to get sensor number ?

phosphor-sel-logger stores only the sensor path and depends on something to map sensor path to sensor number when the log is read.

Today, that mapping is only done for dynamic IPMI sensors in intel-ipmi-oem, here: 
https://github.com/openbmc/intel-ipmi-oem/blob/master/include/sdrutils.hpp#L207.

We were not able to get to a final solution for handling the mapping of dynamic and hardcoded sensor numbers.  You can see the ideas and discussion in this review: 
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/12951
and this thread: 
https://lists.ozlabs.org/pipermail/openbmc/2019-January/014890.html.

This is specifically about getting the sensor number from the path for phosphor-sel-logger, so it may not apply to your situation, but hopefully helps.

Thanks,
-Jason
> 
> Thanks,
> 
> Ivan
> 


More information about the openbmc mailing list