§ 1. Access to tools and information
Server Redfish interface documentation
Read "Applicable Products" in the interface documentation before using to check whether your server supports this protocol.
§ 2. Simple instructions for use
§ 1. Example of GET class
View system information: SystemOverview
Check out the documentation:
Practice:
§ 2. Example of PATCH class
First get the specified user information:
Check the document:
Etag must be required: the way to obtain it is to find it in the response header returned by GET.
Modified according to the documentation:
Successfully modified:
See the documentation for other examples.
§ 3. Common commands
|
|
|
|
|
1.获取系统信息 |
|
白牌: GET https://150.1.24.109/redfish/v1/SystemInfo |
|
华为: |
|
1) 主机名称 |
|
https://150.1.24.109/redfish/v1/SystemOverview |
|
https://150.1.24.109/redfish/v1/Managers/1 |
|
2) 主机BMC管理地址 |
|
https://150.1.24.109/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0 |
|
3) 本地存储信息 |
|
https://150.1.24.109/redfish/v1/Storages/RAIDStorage0 |
|
4) 服务器电源信息 |
|
https://150.1.24.109/redfish/v1/Chassis/1/Power |
|
5) 服务器风扇信息 |
|
https://150.1.24.109/redfish/v1/Chassis/1/Thermal |
|
6) 服务器资产信息 |
|
https://150.1.24.109/redfish/v1/Systems/1 |
|
|
|
2.获取所有BMC用户信息 |
|
白牌:GET https://150.1.24.109/redfish/v1/AccountService/AccountsInfo |
|
华为:GET https://150.1.24.109/redfish/v1/AccountService/Accounts |
|
|
|
3.添加BMC用户 |
|
POST https://150.1.24.109/redfish/v1/AccountService/AccountsInfo |
|
POST https://150.1.24.109/redfish/v1/AccountService/Accounts |
|
|
|
4.获取单个BMC用户信息 |
|
白牌:GET https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4 |
|
华为:GET https://150.1.24.109/redfish/v1/AccountService/Accounts/4 |
|
|
|
5.修改BMC用户信息 |
|
白牌:PATCH https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4 |
|
华为:PATCH https://150.1.24.109/redfish/v1/AccountService/Accounts/4 |
|
|
|
6.删除BMC用户 |
|
白牌: DELETE https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4 |
|
华为: DELETE https://150.1.24.109/redfish/v1/AccountService/Accounts/4 |
|
|
|
7.查询BMC地址 |
|
白牌:GET https://150.1.24.109/redfish/v1/Managers/1/NICsInfo/DedicatedPort1 |
|
华为:GET https://150.1.24.109/redfish/v1/Managers/1/NICs/DedicatedPort1 |
|
|
|
8.修改BMC ip地址 |
|
白牌:PATCH https://150.1.24.109/redfish/v1/Managers/1/NICsInfo/DedicatedPort1 |
|
华为:PATCH https://150.1.24.109/redfish/v1/Managers/1/NICs/DedicatedPort1 |
|
|
|
9.查询启动顺序 |
|
白牌:GET https://150.1.24.109/redfish/v1/Systems/1/Bios/SettingsInfo |
|
华为:GET https://150.1.24.109/redfish/v1/Systems/1/Bios/Settings |
|
|
|
10.修改启动顺序 |
|
白牌:PATCH https://150.1.24.109/redfish/v1/Systems/1/Bios/SettingsInfo |
|
华为:PATCH https://150.1.24.109/redfish/v1/Systems/1/Bios/Settings |
|