commit | 56ccc249f3f45bcb7486c93a19ab271173c64c68 | [log] [tgz] |
---|---|---|
author | Denis Zlobin <zlobin.d.al@gmail.com> | Thu Apr 27 07:29:03 2023 +0000 |
committer | Denis Zlobin <zlobin.d.al@gmail.com> | Mon May 22 12:21:37 2023 +0000 |
tree | 3041f15f7f688b3ef404429fa8bef4506877354e | |
parent | 6f5342d0bdb2b2b8c52323219656f88794abf54f [diff] |
Add pulse sensor log events to logging service Add logging for host power on/off events with SEL_LOGGER_SEND_TO_LOGGING_SERVICE enabled. Tested: Check current log entries by using busctl command: busctl tree xyz.openbmc_project.Logging Turn on host power. Check new log entry message: busctl get-property xyz.openbmc_project.Logging /xyz/openbmc_project/logging/entry/<id> xyz.openbmc_project.Logging.Entry Message Message must contain text: "Host system DC power is on" Turn off host power. Check new log entry message. Message must contain text: "Host system DC power is off" Change-Id: I1f7339182f82cbf4509e34034d09d05e66ca2948 Signed-off-by: Denis Zlobin <zlobin.d.al@gmail.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.