GET – BMC Diagnostic log entries
Use the GET method to retrieve properties in Diagnostic log entries for a server.
Request URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/DiagnosticLog/Entries
Request body
None
Response body
The response is a JSON object that contains the following parameters:
Field | Type | Description | |||
---|---|---|---|---|---|
Id | String | “FFDC”[1] if data type is “Manager” “FailureScreen” if data type is “OS” | |||
Name | String | “FFDC” or “Failure Screen” | |||
Created | String | The time the log entry was created. | |||
EntryType | String | The type of log entry. Always set to “Oem”. | |||
OemRecordFormat | String | If the entry type is Oem, this will contain more information about the record format from the Oem. Always set to “Lenovo”. | |||
Description | String | This resource is used to represent a log entry for log services for a Redfish implementation. | |||
AdditionalDataSizeBytes | Int | The file size of FFDC file or failure screenshot. Set it to 0, if the diag data is not available, | |||
AdditionalDataURI | String | The URI where XCC HTTPS server keeps the diag data. Set it to null, if the diag data is not available. | |||
DiagnosticDataType | String | “Manager” for XCC FFDC; “OS” for “failure screenshot”. |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example JSON response is returned:
{
"@odata.etag": "\"9d7b4a21075d359976ea0\"",
"Description": "A collection of DiagnosticLogEntry resource instances.",
"Members@odata.count": 2,
"Members": [
{
"@odata.etag": "\"34d175e8b88124292cd\"",
"Description": "This resource is used to represent a log entry for log services for a Redfish implementation.",
"OemRecordFormat": "Lenovo",
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"DiagnosticDataType": "Manager",
"EntryType": "Oem",
"@odata.type": "#LogEntry.v1_11_0.LogEntry",
"Id": "FFDC",
"Name": "FFDC",
"AdditionalDataSizeBytes": 0,
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Entries/FFDC",
"AdditionalDataURI": null
},
{
"@odata.etag": "\"3829a0d5b4002665519\"",
"Description": "This resource is used to represent a log entry for log services for a Redfish implementation.",
"OemRecordFormat": "Lenovo",
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"DiagnosticDataType": "OS",
"EntryType": "Oem",
"@odata.type": "#LogEntry.v1_11_0.LogEntry",
"Id": "FailureScreen",
"Name": "Failure Screen",
"AdditionalDataSizeBytes": 0,
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Entries/FailureScreen",
"AdditionalDataURI": null
}
],
"Name": "DiagnosticLogEntryCollection",
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Entries",
"@odata.context": "/redfish/v1/$metadata#LogEntryCollection.LogEntryCollection"
}