25b1bcba | 11-Dec-2024 |
Patrick Williams <patrick@stwcx.xyz> |
Logging.Entry: switch 'AdditionalData' to dict of metadata
All client users of AdditionalData have moved to AdditionalData2, which is already a dict. Switch AdditionalData to be a dict as the next
Logging.Entry: switch 'AdditionalData' to dict of metadata
All client users of AdditionalData have moved to AdditionalData2, which is already a dict. Switch AdditionalData to be a dict as the next part of the migration.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic18c8f9eb9804a1221482a96dd682817816d76d9
show more ...
|
6e9b38a9 | 26-Aug-2024 |
Arya K Padman <aryakpadman@gmail.com> |
Logging: Entry: Add errors to Resolved Property
Add the error 'xyz.openbmc_project.Common.Error.Unavailable' to the 'Resolved' property of the Entry interface.
This change helps in notifying the us
Logging: Entry: Add errors to Resolved Property
Add the error 'xyz.openbmc_project.Common.Error.Unavailable' to the 'Resolved' property of the Entry interface.
This change helps in notifying the users when the attempt to set the Resolved property is prevented until the corresponding error log is addressed.
For example, if the error log is associated with a HardwareIsolation entry (which indicates the faulty hardware) and has not been resolved yet; in this case, we need to prevent setting the 'Resolved' flag.
Change-Id: I64da52e572ba33f888d33039ac604c57b86d84de Signed-off-by: Arya K Padman <aryakpadman@gmail.com>
show more ...
|
6c25fd02 | 17-Jan-2024 |
Patrick Williams <patrick@stwcx.xyz> |
Logging: add default path and service names
Add default paths and service names from the reference implementation in phosphor-logging. The service for logging is expected to be a singleton and the
Logging: add default path and service names
Add default paths and service names from the reference implementation in phosphor-logging. The service for logging is expected to be a singleton and the manager object resides at a fixed path.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia8d4ec354dbbe234109562bd76f1f779922da4e0
show more ...
|
ae1cf7b0 | 11-Apr-2022 |
Paul Fertser <fercerpav@gmail.com> |
Syslog: introduce interfaces for e-mail sending
Interfaces to configure multiple e-mail destinations, each with an individual threshold for the priority level of the syslog messages.
The idea is to
Syslog: introduce interfaces for e-mail sending
Interfaces to configure multiple e-mail destinations, each with an individual threshold for the priority level of the syslog messages.
The idea is to provide facilities to implement a minimally useful subset of Redfish Event Destinations for e-mail with ability to add additional properties if the need arises.
D-Bus object path for each destination contains 8 digits of a mailto hash, so Level can be changed later but for another URI a new object needs to be created.
Current set of properties is made on assumption that organisation has an SMTP smarthost (that BMC is allowed to use without authentication) which takes care of dispatching messages; rsyslog's ommail module is considered for the initial implementation.
Example session:
root@qemuarm:~# busctl tree xyz.openbmc_project.Syslog.Config └─/xyz └─/xyz/openbmc_project └─/xyz/openbmc_project/logging └─/xyz/openbmc_project/logging/config ├─/xyz/openbmc_project/logging/config/mail │ ├─/xyz/openbmc_project/logging/config/mail/2dc1e699 │ ├─/xyz/openbmc_project/logging/config/mail/5d43d672 │ ├─/xyz/openbmc_project/logging/config/mail/b4dc9055 │ ├─/xyz/openbmc_project/logging/config/mail/d5d4db03 │ └─/xyz/openbmc_project/logging/config/mail/e0974603 └─/xyz/openbmc_project/logging/config/remote root@qemuarm:~# busctl introspect xyz.openbmc_project.Syslog.Config /xyz/openbmc_project/logging/config/mail NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.Collection.DeleteAll interface - - - .DeleteAll method - - - xyz.openbmc_project.Logging.Syslog.Destination.Mail interface - - - .From property s "from@some.domain" emits-change writable xyz.openbmc_project.Logging.Syslog.Destination.Mail.Create interface - - - .Create method ss o - xyz.openbmc_project.Network.Client interface - - - .Address property s "smarthost.lan" emits-change writable .Port property q 25 emits-change writable xyz.openbmc_project.Object.Enable interface - - - .Enabled property b true emits-change writable root@qemuarm:~# busctl introspect xyz.openbmc_project.Syslog.Config /xyz/openbmc_project/logging/config/mail/d5d4db03 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.Logging.Syslog.Destination.Mail.Entry interface - - - .Level property s "xyz.openbmc_project.Logging.Entry.Leve… emits-change writable .Mailto property s "mailto://someone2@otherdomain.test" emits-change xyz.openbmc_project.Object.Delete interface - - - .Delete method - - -
Signed-off-by: Paul Fertser <fercerpav@gmail.com> Change-Id: Ic78fc2bf3608c1dd7ec0c962412e69062dde48d4
show more ...
|
0068be81 | 14-Mar-2022 |
Brandon Wyman <bjwyman@gmail.com> |
Logging: README.md: Fix broken links
Do to some refactoring in phosphor-dbus-interfaces and phosphor-logging, a few of the links in the README.md were broken, resulting in 404 errors. Fix up those b
Logging: README.md: Fix broken links
Do to some refactoring in phosphor-dbus-interfaces and phosphor-logging, a few of the links in the README.md were broken, resulting in 404 errors. Fix up those broken links to the new locations.
Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: I3aa54fe57c650727ce18447ad2d176d23348ca16
show more ...
|
964c4c78 | 11-Aug-2021 |
Andrei Kartashev <a.kartashev@yadro.com> |
SEL: add record with custom Sensor/Event Type
The existing `IpmiSelAdd` method is suited only to add limited range of internal SEL record types since it lack some important SEL record fields.
BMC s
SEL: add record with custom Sensor/Event Type
The existing `IpmiSelAdd` method is suited only to add limited range of internal SEL record types since it lack some important SEL record fields.
BMC system may want to support more event types and/or adding external records with IPMI Add SEL Entry Command. In order to implement this extended version of the method was added: `AddExtended`.
The method is similar to existing `IpmiSelAdd` except it accept additional data fields: `eventType`, `sensorType`, `sensorNum` and don't need `Assert` field since it is part of `eventType`. `Path` field was not excluded to support case where software want to define custom eventType but still use internal sensor lookup mechanism. Empty string can be used when there is no dbus sensor for the record.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> Change-Id: I595ae9409ef695368e94eca837f9bdc1ad93c0e3
show more ...
|
208b4e42 | 06-May-2021 |
Vijay Lobo <vijaylobo@gmail.com> |
Entry: Add ServiceProviderNotify property
Add a ServiceProviderNotify property that can be used to indicate that this event log should be notified to the service provider, if that is implemented on
Entry: Add ServiceProviderNotify property
Add a ServiceProviderNotify property that can be used to indicate that this event log should be notified to the service provider, if that is implemented on the system.
Signed-off-by: Vijay Lobo <vijaylobo@gmail.com> Change-Id: I65029020aed35c069d10058159792a75ba188048
show more ...
|