GET – CPU 属性
使用 GET 方法检索 Redfish 服务的 CPU 资源的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/Processors/{1-N}
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Description | 字符串 | “This resource is used to represent a processor for a Redfish implementation.” | |||
TotalEnabledCores | 整数 | 此处理器已启用的总核数。 | |||
Id | 字符串 | 1~{N},N = 1 - 处理器数量 | |||
InstructionSet | 字符串 | 如果 Status.state 不存在,则为 null,否则为“x86-64”。 | |||
Manufacturer | 字符串 | 处理器制造商。 | |||
MaxSpeedMHz | 数字 | 处理器的最大时钟速度。 | |||
Model | 字符串 | 处理器的产品型号。 | |||
Name | 字符串 | “Processor {N}”,N 是此处理器的插槽编号 | |||
SerialNumber | 字符串 | 此处理器的序列号。 | |||
PartNumber | 字符串 | 此处理器的部件号。 | |||
Version | 字符串 | 与 Model 属性相同。 | |||
ProcessorArchitecture | 字符串 | 如果 Status.state 不存在,则为 null,否则为“x86”。 | |||
ProcessorId | 对象 | 已展开 | |||
EffectiveFamily | 字符串 | 此处理器的有效系列。 | |||
EffectiveModel | 字符串 | 此处理器的有效型号。 | |||
IdentificationRegisters | 字符串 | 此处理器的标识寄存器(CPUID)的内容。 | |||
MicrocodeInfo | 字符串 | null | |||
Step | 字符串 | 此处理器的步长值。 | |||
VendorId | 字符串 | 此处理器的供应商标识。 | |||
ProcessorType | 字符串 | “CPU” | |||
Socket | 字符串 | 处理器的插槽或位置。 | |||
Status | 对象 | 包含以下元素 | |||
Health | 字符串 | 此处理器的运行状况。 | |||
State | 字符串 | “Enabled”:处理器存在 “Absent”:处理器不存在 | |||
TotalCores | 数字 | 此处理器中包含的总核数。 | |||
TotalThreads | 数字 | 此处理器支持的执行线程总数。 | |||
Location | 对象 | 处理器的位置。 | |||
PartLocation | 对象 | 部件位置。 | |||
LocationOrdinalValue | 整数 | 表示部件位置的数字。 如果 LocationType 为“slot”,而此单元位于插槽 2 中,则 LocationOrdinalValue 为 2。 | |||
LocationType | 字符串 | 部件位置类型,如 slot、bay 和 socket。此处硬编码为“Socket” | |||
ServiceLabel | 字符串 | 部件位置标签,如丝印名称或印刷标签。 | |||
TDPWatts | 整数 | 以瓦为单位的额定热设计功率(TDP)。 | |||
Metrics | 链接 | 与此处理器关联的指标的链接。 | |||
ProcessorMemory | 数组 | 直接连接到此处理器或集成在此处理器中的内存。 | |||
MemoryType | 字符串 | 此处理器使用的内存类型。 | |||
CapacityMiB | 整数 | 内存容量(以 MiB 为单位)。 | |||
IntegratedMemory | 布尔 | 指示此内存是否集成在处理器内。 | |||
SpeedMHz | 整数 | 内存的运行速度(以 MHz 为单位)。 | |||
Links | 对象 | 展开 | |||
Chassis | 链接 | /redfish/v1/Chassis/1/ |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"SerialNumber": "",
"Id": "1",
"Metrics": {
"@odata.id": "/redfish/v1/Systems/1/Processors/1/ProcessorMetrics"
},
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/1"
}
},
"Version": "Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz",
"TotalEnabledCores": 12,
"InstructionSet": "x86-64",
"PartNumber": "",
"Location": {
"PartLocation": {
"LocationType": "Socket",
"ServiceLabel": "CPU 1",
"LocationOrdinalValue": 0
}
},
"ProcessorArchitecture": "x86",
"Description": "This resource is used to represent a processor for a Redfish implementation.",
"@odata.id": "/redfish/v1/Systems/1/Processors/1",
"Oem": {
"Lenovo": {
"ProcessorFamily": 179,
"CacheInfo": [
{
"InstalledSizeKByte": 768,
"MaxCacheSizeKByte": 768,
"CacheLevel": "L1"
},
{
"InstalledSizeKByte": 12288,
"MaxCacheSizeKByte": 12288,
"CacheLevel": "L2"
},
{
"InstalledSizeKByte": 16896,
"MaxCacheSizeKByte": 16896,
"CacheLevel": "L3"
}
],
"@odata.type": "#LenovoProcessor.v1_0_0.LenovoProcessor",
"NumberOfEnabledCores": 12,
"ExternalBusClockSpeedMHz": 100,
"CurrentClockSpeedMHz": 2100
}
},
"TotalThreads": 24,
"MaxSpeedMHz": 3000,
"Status": {
"State": "Enabled",
"Health": "OK"
},
"ProcessorType": "CPU",
"Name": "Processor 1",
"ProcessorId": {
"Step": "0x04",
"VendorId": "GenuineIntel",
"EffectiveModel": "0x55",
"EffectiveFamily": "0x06",
"IdentificationRegisters": "0x00050654bfebfbff",
"MicrocodeInfo": null
},
"TotalCores": 12,
"ProcessorMemory": [
{
"SpeedMHz": null,
"MemoryType": "L1Cache",
"IntegratedMemory": true,
"CapacityMiB": 0
},
{
"SpeedMHz": null,
"MemoryType": "L2Cache",
"IntegratedMemory": true,
"CapacityMiB": 12
},
{
"SpeedMHz": null,
"MemoryType": "L3Cache",
"IntegratedMemory": true,
"CapacityMiB": 16
}
],
"@odata.type": "#Processor.v1_8_0.Processor",
"TDPWatts": 85,
"Manufacturer": "Intel(R) Corporation",
"@odata.etag": "\"c04762c6eb9530eafca59\"",
"Model": "Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz",
"Socket": "CPU 1"
}