下载
中文
注册

查询系统资源信息

命令功能

查询当前系统集合资源的信息。

命令格式

操作类型:GET

URLhttps://device_ip/redfish/v1/Systems

请求头:

X-Auth-Token: auth_value

请求消息体:无

使用指南

使用实例

请求样例:

GET https://10.10.10.10/redfish/v1/Systems

请求头:

X-Auth-Token: auth_value

请求消息体:无

响应样例:
{
    "@odata.context": "/redfish/v1/$metadata#Systems",
    "@odata.id": "/redfish/v1/Systems",
    "@odata.type": "#ComputerSystem.v1_18_0.ComputerSystem",
    "Id": "1",
    "Name": "Computer System",
    "HostName": "Euler",
    "UUID": "025VLB10K6000019",
    "Model": "Atlas 200 DK A2",
    "SupportModel": "Atlas 200 DK A2",
    "SerialNumber": "2102312NNU10K7000017",
    "AssetTag": "perl",
    "Status": {
        "Health": "OK"
    },
    "Processors": {
        "@odata.id": "/redfish/v1/Systems/Processors"
    },
    "Memory": {
        "@odata.id": "/redfish/v1/Systems/Memory"
    },
    "EthernetInterfaces": {
        "@odata.id": "/redfish/v1/Systems/EthernetInterfaces"
    },
    "LogServices": {
        "@odata.id": "/redfish/v1/Systems/LogServices"
    },
    "SimpleStorages": {
        "@odata.id": "/redfish/v1/Systems/SimpleStorages"
    },
    "Oem": {
        "PCBVersion": 1,
        "Temperature": 50,
        "Power": 23,
        "Voltage": 0.02,
        "CpuHeating": "Stop",
        "DiskHeating": "Stop",
        "UsbHubHeating": "Heating",
        "AiTemperature": 55,
        "ProcessorArchitecture": "ARM",
        "OSVersion": "EulerOS 2.0 (SP10)",
        "KernelVersion": "4.19.90",
        "Uptime": "06:56:58 up 6 min",
        "Datetime": "Wed Nov 16 06:56:58 UTC 2022",
        "DateTimeLocalOffset": "UTC (UTC, +0000)",
        "CpuUsage": 9.09,
        "MemoryUsage": 16.31,
        "Firmware": [
            {
                "Version": "3.0",
                "InactiveVersion": "3.0",
                "Module": "MindXOM",
                "BoardId": "",
                "UpgradeResult": false,
                "UpgradeProcess": 0
            },
         ]
        "InactiveConfiguration": null,
        "NTPService": {
            "@odata.id": "/redfish/v1/Systems/NTPService"
        },
        "ExtendedDevices": {
            "@odata.id": "/redfish/v1/Systems/ExtendedDevices"
        },
        "LTE": {
            "@odata.id": "/redfish/v1/Systems/LTE"
        },
        "Partitions": {
            "@odata.id": "/redfish/v1/Systems/Partitions"
        },
        "NfsManage": {
            "@odata.id": "/redfish/v1/Systems/NfsManage"
        },
        "SecurityService": {
            "@odata.id": "/redfish/v1/Systems/SecurityService"
        },
        "Alarm": {
            "@odata.id": "/redfish/v1/Systems/Alarm"
        },
        "SystemTime": {
            "@odata.id": "/redfish/v1/Systems/SystemTime"
        },
        "EthIpList": {
            "@odata.id": "/redfish/v1/Systems/EthIpList"
        },
        "Modules": {
            "@odata.id": "/redfish/v1/Systems/Modules"
        }
    },
    "Actions": {
        "#ComputerSystem.Reset": {
            "target": "/redfish/v1/Systems/Actions/ComputerSystem.Reset"
        },
        "Oem": {
            "#RestoreDefaults.Reset": {
                "target": "/redfish/v1/Systems/Actions/RestoreDefaults.Reset"
            }
        }
    }
}

响应码:200

输出说明

表1 操作输出说明

字段

类型

说明

@odata.context

字符串

指定系统资源模型的OData描述信息。

@odata.id

字符串

指定系统资源的访问路径。

@odata.type

字符串

指定系统资源的类型。

Id

字符串

指定系统资源的ID。

Name

字符串

指定系统资源的名称。

HostName

字符串

系统主机名称。

UUID

字符串

系统唯一标识。

Model

字符串

产品名称。

SupportModel

字符串

支持升级的产品名称。

SerialNumber

字符串

产品序列号。

AssetTag

字符串

用户定义电子标签。

Status

对象

指定系统资源的状态。

Health:系统资源健康状态。

Processors

对象

处理器接口资源的访问路径。

Memory

对象

内存接口资源的访问路径。

EthernetInterfaces

对象

以太网接口资源的访问路径。

LogServices

对象

日志接口资源的访问路径。

SimpleStorages

对象

简单存储接口资源的访问路径。

Oem

对象

自定义属性。

PCBVersion

数字

PCB版本号。

Temperature

数字

系统温度。

Power

数字

系统功率。

Voltage

数字

系统电压。

CpuHeating

字符串

CPU加热状态。

DiskHeating

字符串

硬盘加热状态。

UsbHubHeating

字符串

USB Hub加热状态。

AiTemperature

数字

MiniD温度。

ProcessorArchitecture

字符串

处理器架构。

OSVersion

字符串

操作系统版本。

KernelVersion

字符串

内核版本号。

Uptime

字符串

系统连续运行时间。

Datetime

字符串

系统当前时间。

说明:

由于系统数据缓存,返回的时间与系统时间存在20秒左右的偏差。

DateTimeLocalOffset

字符串

系统时间时区。

CpuUsage

数字

CPU占用率百分比,0~100。

MemoryUsage

数字

内存占用率百分比,0~100。

Firmware

列表

固件列表。
  • Ascend-firmware
  • NPU Driver

Version

字符串

当前运行的版本号。

InactiveVersion

字符串

待生效版本号。

Module

字符串

固件名称。
  • Ascend-firmware
  • NPU Driver

BoardId

字符串

板号。

UpgradeResult

布尔值

固件升级结果。
  • true
  • false
  • null(表示固件未进行升级)

UpgradeProcess

数字

升级进度

InactiveConfiguration

字符串

未生效已导入的配置文件名称。

NTPService

对象

NTPService接口资源的访问路径。

ExtendedDevices

对象

外部设备接口资源的访问路径。

LTE

对象

无线网络接口资源的访问路径。

Partitions

对象

磁盘分区接口资源的访问路径。

NfsManage

对象

NfsManage接口资源的访问路径。

SecurityService

对象

安全服务接口资源的访问路径。

Alarm

对象

告警接口资源的访问路径。

SystemTime

对象

系统时间接口资源的访问路径。

EthIpList

对象

获取网口与IP列表接口资源的访问路径。

Modules

对象

外部设备模组接口资源的访问路径。

Actions

对象

可执行操作。

#ComputerSystem.Reset

对象

OS重启操作。

#RestoreDefaults.Reset

对象

恢复出厂访问操作。