GET – Service for BMC Diagnostic logs
Use the GET method to retrieve properties in diagnostic log service resource for a server.
Request URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/DiagnosticLog
Request body
None
Response body
Field | Type | Description | |||
---|---|---|---|---|---|
Id | String | Uniquely identifies the resource within the collection of the log services resource. Always set to “DiagnosticLog”. | |||
Name | String | The name of the resource or array element. | |||
DateTimeLocalOffset | String | The UTC offset that the current DateTime property value contains in the “+HH:MM” format. | |||
MaxNumberOfRecords | Number | 2 (Manager (FFDC) and OS (failure screen) ) | |||
DateTime | String | The current DateTime (with offset) for the log service, used to set or read time. | |||
ServiceEnabled | Boolean | Indicate whether this service is enabled. | |||
LogEntryType | String | “Multiple” | |||
Entries | Object | References to the log entry collection. | |||
OverWritePolicy | String | enum string “WrapsWhenFull” | |||
Description | String | This resource is used to represent a log service for a Redfish implementation. | |||
Actions | Object | Expanded | |||
#LogService.CollectDiagnosticData | Object |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example JSON response is returned:
{
"MaxNumberOfRecords": 5,
"Name": "LogService",
"ServiceEnabled": true,
"@odata.id": "/redfish/v1/Systems/1/LogServices/SaLog",
"@odata.etag": "\"3a50669a211526668eb\"",
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"DateTime": "2022-08-15T03:21:35+00:00",
"DateTimeLocalOffset": "+00:00",
"LogEntryType": "Multiple",
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/SaLog/Entries"
},
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"@odata.type": "#LogService.v1_3_0.LogService",
"Id": "SaLog"
}
{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"Id": "DiagnosticLog",
"Name": "LogService",
"@odata.type": "#LogService.v1_3_0.LogService",
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog",
"@odata.etag": "\"5a4bfe416e7227ec46e\"",
"LogEntryType": "Multiple",
"DateTime": "2022-08-15T04:35:43+00:00",
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Entries"
},
"DateTimeLocalOffset": "+00:00",
"OverWritePolicy": "WrapsWhenFull",
"MaxNumberOfRecords": 2,
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"ServiceEnabled": true,
"Actions": {
"#LogService.CollectDiagnosticData": {
"title": "CollectDiagnosticData",
"target": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Actions/LogService.CollectDiagnosticData"
}
}
}
Give documentation feedback