selcommands: change logging command to lg2commit
Add capability to create structured logs for UnifySel and compatible
with Redfish Events.
Tested: "7": {
"additional_data": {
"EVENT": "SEL Entry: FRU: 1, Record: Facebook Unified SEL
(0xFB), GeneralInfo: POST(0x28), POST Failure Event: System
PXE boot fail, Fail Type: IPv6 fail, Error Code: 0x15",
"RAW_EVENT": "0000FB280000000000FFFFFFFF0615FF",
"SOURCE": "/xyz/openbmc_project/state/host0",
"_CODE_FILE": "/usr/src/debug/fb-ipmi-
oem/0.1+git/src/selcommands.cpp",
"_CODE_FUNC": "ipmi::storage::ipmiStorageAddSELEntry(
ipmi::Context::ptr, std::vector<unsigned char>)::<lambda()>",
"_CODE_LINE": "1671",
"_PID": "703"
},
"event_id": "",
"message": "com.meta.IPMI.UnifiedSEL.UnifiedSELEvent",
"redfish": {
"args": [
"/xyz/openbmc_project/state/host0",
"SEL Entry: FRU: 1, Record: Facebook Unified SEL (0xFB),
GeneralInfo: POST(0x28), POST Failure Event: System PXE
boot fail, Fail Type: IPv6 fail, Error Code: 0x15"
],
"id": "OpenBMC_MetaIPMIUnifiedSEL.UnifiedSELEvent",
"message": "Unified SEL received from
'/xyz/openbmc_project/state/host0': SEL Entry: FRU: 1, Record:
Facebook Unified SEL (0xFB), GeneralInfo: POST(0x28),
POST Failure Event:
System PXE boot fail, Fail Type: IPv6 fail, Error Code: 0x15"
},
"resolution": "",
"resolved": false,
"severity": "xyz.openbmc_project.Logging.Entry.Level.Critical",
"timestamp": "2025-03-25T03:26:13.121000000Z",
"updated_timestamp": "2025-03-25T03:26:13.121000000Z"
}
Change-Id: I91b0f2f15bb99da3386aedbccd157b3d1dfb910a
Signed-off-by: Peter Yin <peter.yin@quantatw.com>
1 file changed