commit | 7f5518a24e157214e2ff09ce383ed51ad7a418da | [log] [tgz] |
---|---|---|
author | Potin Lai <potin.lai@quantatw.com> | Tue Mar 19 00:37:36 2024 +0800 |
committer | Potin Lai <potin.lai@quantatw.com> | Tue Mar 19 00:56:41 2024 +0800 |
tree | 2e4cdf2a8288bf350962afc88f6e008b8974bda1 | |
parent | 92721508dbcffabbfe189c06e79cb0af27c3eb9a [diff] |
pulse_event_monitor: add host id in DC power on/off log Current DC power on/off log does not contains host id, in multi-host system, it hard to identify the event log is from which host via redfish. Add host id into event log message for helping identify the log comes from which host. Tested result: ``` { "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/2", "@odata.type": "#LogEntry.v1_9_0.LogEntry", "AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/2/attachment", "Created": "2024-03-18T16:28:09.708+00:00", "EntryType": "Event", "Id": "2", "Message": "Host3 system DC power is off", "Modified": "2024-03-18T16:28:09.708+00:00", "Name": "System Event Log Entry", "Resolved": false, "Severity": "OK" } ``` Change-Id: I4b2b3cb17f8aaf65f0bea7e359f8d5a83f2674bb Signed-off-by: Potin Lai <potin.lai@quantatw.com>
The SEL Logger daemon handles all requests to add new IPMI SEL records to the journal. SEL records stored in the journal are identified by the standard MESSAGE_ID metadata. Other metadata fields are used to store event-specific information for each record.
SEL records are identified in the journal using the MESSAGE_ID field.
The MESSAGE_ID for SEL records is "b370836ccf2f4850ac5bee185b77893a".
The additional metadata fields for a SEL record are
IPMI_SEL_RECORD_ID = Two byte unique SEL Record ID IPMI_SEL_RECORD_TYPE = The type of SEL entry (system or OEM) which determines the definition of the remaining bytes IPMI_SEL_GENERATOR_ID = The IPMI Generator ID (usually the IPMB Slave Address) of the requester IPMI_SEL_SENSOR_PATH = D-Bus path of the sensor in the event IPMI_SEL_EVENT_DIR = Direction of the event (assert or deassert) IPMI_SEL_DATA = Raw binary data included in the SEL record
The SEL Logger daemon exposes an interface for manually adding System and OEM type SEL events, and provides the capability to monitor for types of events and log them automatically.
The interface for System type events requires
The interface for OEM type events requires
The MESSAGE_ID and IPMI_SEL_RECORD_ID metadata fields are added by the daemon.
The SEL Logger daemon can be configured to watch for specific types of events and automatically log SEL records for them.
As an example, the SEL Logger has a "threshold event monitor" which implements a D-Bus match for any "PropertiesChanged" event on the xyz.openbmc_project.Sensor.Threshold
interface. The handler then checks for any new threshold events and logs SEL records accordingly.