selcommands: send sel entry on dbus
Send sel entry on dbus via logging service. Redfish api will get entries from dbus.
Expected event entry:
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/63",
"@odata.type": "#LogEntry.v1_9_0.LogEntry",
"AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/63/attachment",
"Created": "2018-03-14T11:34:35.178+00:00",
"EntryType": "Event",
"Id": "63",
"Message": SEL Entry Added: SEL Entry: FRU: 1, Record: Standard (0x02), Time: Fri Feb 18 16:06:25 1972\n, Sensor: THERM_THRESH_EVT (0x7D), Event Data: (010000) Limit Exceeded Assertion
"Modified": "2018-03-14T11:34:35.178+00:00",
"Name": "System Event Log Entry",
"Resolved": false,
"Severity": "OK"
}
Tested: Tested and verified on greatlakes platform.
Change-Id: Ic9584474f9bf3619f0eed95f7d19039850899c07
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2 files changed