All of lore.kernel.org
 help / color / mirror / Atom feed
* couple questions for Event Log
@ 2019-01-18  9:28 刘锡伟
  2019-01-18 17:51 ` Bills, Jason M
  0 siblings, 1 reply; 4+ messages in thread
From: 刘锡伟 @ 2019-01-18  9:28 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

Hi

1.       How to debug the system event log, how to configure it, and what modules are related to the log function?

2.       When is the phosphor-sel-logger registration method (IpmiSelAdd, IpmiSelAddOem) invoked? How to use DBUS to read journalctl?

3.       Could anyone share a description of the yaml file about phosphor-logging?

Thanks

[-- Attachment #2: Type: text/html, Size: 2090 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: couple questions for Event Log
  2019-01-18  9:28 couple questions for Event Log 刘锡伟
@ 2019-01-18 17:51 ` Bills, Jason M
  0 siblings, 0 replies; 4+ messages in thread
From: Bills, Jason M @ 2019-01-18 17:51 UTC (permalink / raw)
  To: openbmc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: couple questions for Event Log
  2019-01-21  9:43 George Liu
@ 2019-01-22 20:26 ` Bills, Jason M
  0 siblings, 0 replies; 4+ messages in thread
From: Bills, Jason M @ 2019-01-22 20:26 UTC (permalink / raw)
  To: openbmc



On 1/21/2019 1:43 AM, George Liu wrote:
> Hi:
> 1. Could anyone use impitool sel list to read values after calling the 
> sd_journal_send method?

No, not really.  sd_journal_send only adds a log entry with metadata to 
the journal.

phosphor-sel-logger adds special metadata to identify the entry as an 
IPMI sel record.  A special implementation of the 'Get SEL Entry' IPMI 
command is needed to find the journal entries with SEL metadata and 
construct the IPMI SEL records.  An example implementation is here: 
https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/16280.

> 2. Calling the startThresholdEventMonitor method of the 
> phosphor-sel-logger module, why get the values of max, min, sensorVal 
> are all 0? But I can get the correct values through dbus.

Calling startThresholdEventMonitor() should start a D-Bus match to watch 
for any changes to 'xyz.openbmc_project.Sensor.Threshold' properties. 
The 'Alarm' properties are used to know when a sensor threshold is 
crossed and log that event automatically.

When the match is triggered, the callback uses the same bus and path to 
get the properties from the 'xyz.openbmc_project.Sensor.Value' interface 
which has the MaxValue, MinValue, and Value properties for the sensor.

So, is the issue you see that after the match is triggered and the 
'xyz.openbmc_project.Sensor.Value' properties are read from that path, 
they are all 0, but if you manually read the properties from the same 
path, they are correct?

> Thanks
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* couple questions for Event Log
@ 2019-01-21  9:43 George Liu
  2019-01-22 20:26 ` Bills, Jason M
  0 siblings, 1 reply; 4+ messages in thread
From: George Liu @ 2019-01-21  9:43 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

Hi:
1. Could anyone use impitool sel list to read values after calling the sd_journal_send method?
2. Calling the startThresholdEventMonitor method of the phosphor-sel-logger module, why get the values of max, min, sensorVal are all 0? But I can get the correct values through dbus.
Thanks

[-- Attachment #2: Type: text/html, Size: 478 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-22 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-18  9:28 couple questions for Event Log 刘锡伟
2019-01-18 17:51 ` Bills, Jason M
2019-01-21  9:43 George Liu
2019-01-22 20:26 ` Bills, Jason M

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.