diff options
| author | Potin Lai <potin.lai@quantatw.com> | 2022-05-04 09:32:53 +0300 |
|---|---|---|
| committer | Potin Lai <potin.lai@quantatw.com> | 2022-05-04 09:51:25 +0300 |
| commit | 26b2de56ad7d9c1af93a4209ac5f46e0477e6ca2 (patch) | |
| tree | 0a4bddfbadfc08207767554af226540b023673ee /meta-openembedded/meta-python/recipes-devtools/python | |
| parent | 0759c75ecfb186cfc20b09132aba05852bc2d2d0 (diff) | |
| download | openbmc-26b2de56ad7d9c1af93a4209ac5f46e0477e6ca2.tar.xz | |
meta-facebook: enable event log on redfish
1. enable `send-to-logger` option in phosphor-sel-logger, handle logs by
Phosphor Log Manager.
2. enable `redfish-dbus-log` in bmcweb to add redfish support for
event logs.
Tested results:
- Redfish
$ curl -u root:0penBmc -k https://10.10.11.203/redfish/v1/Systems/system/LogServices/EventLog/Entries/15
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/15",
"@odata.type": "#LogEntry.v1_8_0.LogEntry",
"AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/EventLog/15/attachment",
"Created": "2022-05-04T06:17:21.948000+00:00",
"EntryType": "Event",
"Id": "15",
"Message": "xyz.openbmc_project.Logging.SEL.Error.Created",
"Modified": "2022-05-04T06:17:21.948000+00:00",
"Name": "System Event Log Entry",
"Resolved": false,
"Severity": "OK"
}
- CLI
root@bletchley:~# obmcutil listlogs
{
"type" : "as",
"data" : [
[
"/xyz/openbmc_project/logging/entry/15",
"/xyz/openbmc_project/logging/entry/16",
"/xyz/openbmc_project/logging/entry/17",
"/xyz/openbmc_project/logging/entry/18",
"/xyz/openbmc_project/logging/entry/19",
"/xyz/openbmc_project/logging/entry/20",
"/xyz/openbmc_project/logging/entry/21",
"/xyz/openbmc_project/logging/entry/22",
"/xyz/openbmc_project/logging/entry/23",
"/xyz/openbmc_project/logging/entry/24"
]
]
}
root@bletchley:~# obmcutil showlog /xyz/openbmc_project/logging/entry/15
{
"type" : "a{sv}",
"data" : [
{
"Id" : {
"type" : "u",
"data" : 15
},
"Timestamp" : {
"type" : "t",
"data" : 1651645041948
},
"Severity" : {
"type" : "s",
"data" : "xyz.openbmc_project.Logging.Entry.Level.Informational"
},
"Message" : {
"type" : "s",
"data" : "xyz.openbmc_project.Logging.SEL.Error.Created"
},
"EventId" : {
"type" : "s",
"data" : ""
},
"AdditionalData" : {
"type" : "as",
"data" : [
"EVENT_DIR=1",
"GENERATOR_ID=32",
"RECORD_TYPE=2",
"SENSOR_DATA=520007",
"SENSOR_PATH=/xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_IL",
"_PID=327"
]
},
"Resolution" : {
"type" : "s",
"data" : ""
},
"Resolved" : {
"type" : "b",
"data" : false
},
"ServiceProviderNotify" : {
"type" : "b",
"data" : false
},
"UpdateTimestamp" : {
"type" : "t",
"data" : 1651645041948
}
}
]
}
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie4094c8e20224506474b75ae18ede97adfdd5bb7
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python')
0 files changed, 0 insertions, 0 deletions
