跳到主要内容

GET – IPMI SEL 日志服务的服务

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

请求 URL

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

请求正文

响应正文

字段类型描述

Id

字符串

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

Name

字符串

资源或数组元素的名称。

DateTimeLocalOffset

字符串

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

MaxNumberOfRecords

数字

此服务可以拥有的最大日志条目数。始终设置为 2046。

DateTime

字符串

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

ServiceEnabled

布尔

指示是否启用此服务。

OverWritePolicy

字符串

“NeverOverWrites”或“WrapsWhenFull”。

LogEntryType

字符串

“Multiple”

Description

字符串

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

Actions

对象

已展开

 

#LogService.ClearLog

对象

使用 IPMI 命令清除 SEL 记录。

状态代码

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

示例

返回以下示例 JSON 响应:

{
"OverWritePolicy": "NeverOverWrites",
"Actions": {
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/1/LogServices/SEL/Actions/LogService.ClearLog",
"title": "ClearLog"
}
},
"DateTimeLocalOffset": "+05:00",
"DateTime": "2021-10-11T12:02:39+05:00",
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"MaxNumberOfRecords": 511,
"@odata.etag": "\"51cc7189a8b227e82e7\"",
"Oem": {
"Lenovo": {
"@odata.type": "#LenovoLogService.v1_0_0.LenovoLogServiceProperties",
"EnableSELWrapping": false
}
},
"Name": "LogService",
"@odata.type": "#LogService.v1_1_3.LogService",
"ServiceEnabled": true,
"Id": "SEL",
"@odata.id": "/redfish/v1/Systems/1/LogServices/SEL"
}