跳到主要内容

GET – BMC 诊断日志的服务

使用 GET 方法检索服务器的诊断日志服务资源中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/DiagnosticLog

请求正文

响应正文

字段类型描述

Id

字符串在日志服务资源集合中唯一标识此资源。始终设置为“DiagnosticLog”。

Name

字符串资源或数组元素的名称。

Description

字符串“This resource is used to represent a log service for a Redfish implementation.”

ServiceEnabled

布尔指示是否启用此服务。

MaxNumberOfRecords

数字12(Manager(FFDC)和 OS(故障屏幕))

DateTimeLocalOffset

字符串当前 DateTime 属性值以“+HH:MM”格式包含的 UTC 偏移量。

DateTime

字符串日志服务的当前日期时间(含偏移量),用于设置或读取时间。

OverWritePolicy

字符串枚举字符串“WrapsWhenFull”

LogEntryType

字符串“Multiple”

Entries

对象日志条目集合的引用。

Actions

对象已展开。
 

#LogService.CollectDiagnosticData

对象

已展开。

 

title

字符串

CollectDiagnosticData

 

target

字符串

/redfish/v1/Systems/1/LogServices/DiagnosticLog/Actions/LogService.CollectDiagnosticData

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"@odata.etag": "\"566C0640\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog",
"@odata.type": "#LogService.v1_3_1.LogService",
"Actions": {
"#LogService.CollectDiagnosticData": {
"DiagnosticDataType@Redfish.AllowableValues": [
"Manager",
"OEM"
],
"OEMDiagnosticDataType@Redfish.AllowableValues": [
"MiniLog",
"MPFA"
],
"target": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Actions/ LogService.CollectDiagnosticData",
"title": "CollectDiagnosticData"
}
},
"DateTime": "2024-12-04T05:05:15+00:00",
"DateTimeLocalOffset": "+00:00",
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Entries"
},
"Id": "DiagnosticLog",
"LogEntryType": "Multiple",
"MaxNumberOfRecords": 12,
"Name": "LogService",
"Oem": {
...
}
},
"OverWritePolicy": "WrapsWhenFull",
"ServiceEnabled": true
}