couple questions for Event Log
Bills, Jason M
jason.m.bills at linux.intel.com
Sat Jan 19 04:51:26 AEDT 2019
On 1/18/2019 1:28 AM, 刘锡伟 wrote:
> Hi
>
> 1.How to debug the system event log, how to configure it, and what
> modules are related to the log function?
Can you provide more detail? Are you looking specifically for IPMI SEL
or general BMC logging through phosphor-logging?
>
> 2.When is the phosphor-sel-logger registration method (IpmiSelAdd,
> IpmiSelAddOem) invoked? How to use DBUS to read journalctl?
phosphor-sel-logger runs as a service and exposes the IpmiSelAdd and
IpmiSelAddOem methods on D-Bus. When either of those methods is
invoked, the phosphor-sel-logger creates an IPMI SEL entry in the system
journal using the provided data. The journal can then be parsed to
extract the SEL entries as found in
https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/16280.
journalctl is a command-line utility to read the system journal, so it
isn't used over D-Bus. Details on journalctl can be found here:
https://www.freedesktop.org/software/systemd/man/journalctl.html.
If you want to read the journal in source, you can use the sd_journal
APIs here:
https://www.freedesktop.org/software/systemd/man/sd_journal.html#.
Example usage is in the gerrit review above.
>
> 3.Could anyone share a description of the yaml file about phosphor-logging?
>
> Thanks
>
>
>
Thanks,
-Jason
More information about the openbmc
mailing list