Skip to main content

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

FieldTypeDescription

Id

StringUniquely identifies the resource within the collection of the log services resource. Always set to “DiagnosticLog”.

Name

StringThe name of the resource or array element.

DateTimeLocalOffset

StringThe UTC offset that the current DateTime property value contains in the “+HH:MM” format.

MaxNumberOfRecords

Number2 (Manager (FFDC) and OS (failure screen) )

DateTime

StringThe current DateTime (with offset) for the log service, used to set or read time.

ServiceEnabled

BooleanIndicate whether this service is enabled.

LogEntryType

String“Multiple”

Entries

ObjectReferences to the log entry collection.

OverWritePolicy

Stringenum string “WrapsWhenFull”

Description

StringThis resource is used to represent a log service for a Redfish implementation.

Actions

ObjectExpanded
 

#LogService.CollectDiagnosticData

Object 

Status code

HTTP Status CodeError Message ID
500InternalError

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"
}
}
}