ProcessorMetrics
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Systems/system_id/Processors/processor_id/ProcessorMetrics

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-单个处理器度量信息资源模型的OData描述信息
@odata.idstringtrue-单个处理器度量信息资源的访问路径
@odata.typestringtrue-单个处理器度量信息资源的类型
Namestringtrue-单个处理器度量信息资源名称
Idnumbertrue-单个处理器度量信息资源ID
OperatingSpeedMHznumbertrue-指定处理器的工作频率
UncorrectableECCErrorCountnumbertrue-发生不可纠正错误的次数
UncorrectableECCErrorCountnumbertrue-发生不可纠正错误的次数
FatalErrorCountnumbertrue-PCIe致命错误总数
NonFatalErrorCountnumbertrue-PCIe非致命错误总数
BadDLLPCountnumbertrue-接收器在PCIe链路上发出的Bad DLLP的总数
BadTLPCountnumbertrue-接收器在PCIe链路上发出的Bad TLP的总数
UnsupportedRequestCountnumbertrue-接收到的PCIe不支持请求的总数
#ProcessorMetrics.ClearCurrentPeriodobjecttrue-清零CurrentPeriod的属性值
targetstringtrue-Action操作路径
@Redfish.ActionInfostringtrue-Action操作信息查询路径

supported_methods

  • GET
  • POST

HTTP methods

GET

命令功能

查询指定处理器指标资源信息

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Processors/processor_id/ProcessorMetrics

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID参见源文件参数说明
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Systems/system_id/Processors/processor_id/ProcessorMetrics

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#ProcessorMetrics.ProcessorMetrics",
  "@odata.id": "/redfish/v1/Systems/1/Processors/1/ProcessorMetrics",
  "@odata.type": "#ProcessorMetrics.v1_7_0.ProcessorMetrics",
  "Name": "Processor Metrics",
  "Id": "1",
  "OperatingSpeedMHz": 2900,
  "CacheMetricsTotal": {
    "CurrentPeriod": {
      "UncorrectableECCErrorCount": 0
    },
    "LifeTime": {
      "UncorrectableECCErrorCount": 9
    }
  },
  "PCIeErrors": {
    "FatalErrorCount": 0,
    "NonFatalErrorCount": 0,
    "BadDLLPCount": 0,
    "BadTLPCount": 0,
    "UnsupportedRequestCount": 0
  },
  "Actions": {
    "#ProcessorMetrics.ClearCurrentPeriod": {
      "target": "/redfish/v1/Systems/1/Processors/1/ProcessorMetrics/Actions/ProcessorMetrics.ClearCurrentPeriod",
      "@Redfish.ActionInfo": "/redfish/v1/Systems/1/Processors/1/ProcessorMetrics/ClearCurrentPeriodActionInfo"
    }
  }
}

响应码:200

POST (ACTION)

ClearCurrentPeriod

命令功能

清空处理器指标资源当前周期的度量统计数据

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Processors/processor_id/ProcessorMetrics/Actions/ProcessorMetrics.ClearCurrentPeriod

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体: 无

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值为1
● 针对高密服务器,取值为 BladeN(N表示节点槽位 号),例如“Blade1”
● 针对刀片服务器,取值可以为 BladeN(N表示计算节点槽位 号)或SwiN(N表示交换模块 槽位号),例如“Swi1”
● 针对X6800 V5,X6000 V5, G5500,XA320 V2服务器,取 值还可以为Enc,表示计算节 点所在的机框资源
● 针对设备U位信息,取值可以 为UN(N表示设备U位号),例 如"U1"
● 针对机柜资源,取值为Rack
processor_id处理器资源的ID可从处理器集合资源中获得

使用指南

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/system_id/Processors/processor_id/ProcessorMetrics/Actions/ProcessorMetrics.ClearCurrentPeriod

X-Auth-Token: 123456789*********************** Content-Type: header_type

请求消息体:无

响应样例:

json
{
  "error": {
    "code": "Base.1.0.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "MessageId": "Base.1.0.Success",
        "RelatedProperties": [],
        "Message": "Successfully Completed Request",
        "MessageArgs": [],
        "Severity": "OK",
        "Resolution": "None"
      }
    ]
  }
}

响应码:200