回覆: [Phishing Risk] [External] Re: [phosphor-sel-logger] How to add a journal entry manually

Chris Chen (TPI) Chris.Chen3 at flex.com
Tue Oct 26 19:39:39 AEDT 2021


Hi Lei Yu,

Understood. Thanks for your explanation.

Regards,
Chris Chen

________________________________
寄件者: Lei YU <mine260309 at gmail.com>
寄件日期: 2021年10月26日 下午 02:24
收件者: Chris Chen (TPI) <Chris.Chen3 at flex.com>
副本: Lei Yu <yulei.sh at bytedance.com>; Bills, Jason M <jason.m.bills at linux.intel.com>; openbmc <openbmc at lists.ozlabs.org>
主旨: Re: [Phishing Risk] [External] Re: [phosphor-sel-logger] How to add a journal entry manually

On Tue, Oct 26, 2021 at 2:16 PM Chris Chen (TPI) <Chris.Chen3 at flex.com> wrote:
>
> Hi Jason and Lei Yu,
>
> Thanks for your sharing.
>
> I am able to see the sel in the /var/log/ipmi_sel as same as Jason mentioned and also see the sel by the "ipmitool sel list" command.
>
> However, for Lei's suggestion of adding "send-to-logger" configuration, I really can see it becomes an entry in /xyz/openbmc_project/logging/entry/X rather than saving the message in the /var/log/ipmi_sel, but I can't see any sel entry by the "ipmitool sel list" command. It looks like the ipmid doesn't parse the entry into an SEL record. Is it the sel entry I added (busctl call xyz.openbmc_project.Logging.IPMI /xyz/openbmc_project/Logging/IPMI xyz.openbmc_project.Logging.IPMI IpmiSelAdd ssaybq "helloworld" "/xyz/openbmc_project/Test" 3 16 32 64 true 0x81) just a sample not a formal info? or due to other reasons?

It depends on the config of ipmid. You may be using the dynamic sensor
feature (FEATURE_DYNAMIC_SENSORS), which does not work with the above
case.
To make ipmid work with the logging entry -> SEL parsing, you need to
use the static sensors defined by yaml config, and then the code will
parse the logging entry into a SEL record.

Legal Disclaimer :
The information contained in this message may be privileged and confidential. 
It is intended to be read only by the individual or entity to whom it is addressed 
or by their designee. If the reader of this message is not the intended recipient, 
you are on notice that any distribution of this message, in any form, 
is strictly prohibited. If you have received this message in error, 
please immediately notify the sender and delete or destroy any copy of this message!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20211026/09a03c28/attachment.htm>


More information about the openbmc mailing list