Redfish协议测试工具–Postman
生活随笔
收集整理的這篇文章主要介紹了
Redfish协议测试工具–Postman
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
§?1. 工具和資料獲取
Postman工具獲取
服務器Redfish接口說明文檔
使用前必讀接口文檔中“適用的產品”,查看自己的服務器是否支持此協議。
§?2. 簡單使用說明
§?1. GET類舉例
查看系統信息: SystemOverview
查看文檔:
實操:
§?2. PATCH類舉例
首先獲取指定用戶信息:
查看文檔:
要有Etag:獲取方式是通過GET得到返回的響應頭中找。
根據文檔修改:
修改成功:
其他樣例請查看文檔。
§?3. 常見命令
| 1 | |
| 2 | |
| 3 | 1.獲取系統信息 |
| 4 | 白牌: GET https://150.1.24.109/redfish/v1/SystemInfo |
| 5 | 華為: |
| 6 | 1)?主機名稱 |
| 7 | https://150.1.24.109/redfish/v1/SystemOverview |
| 8 | https://150.1.24.109/redfish/v1/Managers/1 |
| 9 | 2)?主機BMC管理地址 |
| 10 | https://150.1.24.109/redfish/v1/Chassis/1/Drives/HDDPlaneDisk0 |
| 11 | 3)?本地存儲信息 |
| 12 | https://150.1.24.109/redfish/v1/Storages/RAIDStorage0 |
| 13 | 4)?服務器電源信息 |
| 14 | https://150.1.24.109/redfish/v1/Chassis/1/Power |
| 15 | 5)?服務器風扇信息 |
| 16 | https://150.1.24.109/redfish/v1/Chassis/1/Thermal |
| 17 | 6)?服務器資產信息 |
| 18 | https://150.1.24.109/redfish/v1/Systems/1 |
| 19 | |
| 20 | 2.獲取所有BMC用戶信息 |
| 21 | 白牌:GET https://150.1.24.109/redfish/v1/AccountService/AccountsInfo |
| 22 | 華為:GET https://150.1.24.109/redfish/v1/AccountService/Accounts |
| 23 | |
| 24 | 3.添加BMC用戶 |
| 25 | POST https://150.1.24.109/redfish/v1/AccountService/AccountsInfo |
| 26 | POST https://150.1.24.109/redfish/v1/AccountService/Accounts |
| 27 | |
| 28 | 4.獲取單個BMC用戶信息 |
| 29 | 白牌:GET https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4 |
| 30 | 華為:GET https://150.1.24.109/redfish/v1/AccountService/Accounts/4 |
| 31 | |
| 32 | 5.修改BMC用戶信息 |
| 33 | 白牌:PATCH https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4 |
| 34 | 華為:PATCH https://150.1.24.109/redfish/v1/AccountService/Accounts/4 |
| 35 | |
| 36 | 6.刪除BMC用戶 |
| 37 | 白牌: DELETE https://150.1.24.109/redfish/v1/AccountService/AccountsInfo/4 |
| 38 | 華為: DELETE https://150.1.24.109/redfish/v1/AccountService/Accounts/4 |
| 39 | |
| 40 | 7.查詢BMC地址 |
| 41 | 白牌:GET https://150.1.24.109/redfish/v1/Managers/1/NICsInfo/DedicatedPort1 |
| 42 | 華為:GET https://150.1.24.109/redfish/v1/Managers/1/NICs/DedicatedPort1 |
| 43 | |
| 44 | 8.修改BMC ip地址 |
| 45 | 白牌:PATCH https://150.1.24.109/redfish/v1/Managers/1/NICsInfo/DedicatedPort1 |
| 46 | 華為:PATCH https://150.1.24.109/redfish/v1/Managers/1/NICs/DedicatedPort1 |
| 47 | |
| 48 | 9.查詢啟動順序 |
| 49 | 白牌:GET https://150.1.24.109/redfish/v1/Systems/1/Bios/SettingsInfo |
| 50 | 華為:GET https://150.1.24.109/redfish/v1/Systems/1/Bios/Settings |
| 51 | |
| 52 | 10.修改啟動順序 |
| 53 | 白牌:PATCH https://150.1.24.109/redfish/v1/Systems/1/Bios/SettingsInfo |
| 54 | 華為:PATCH https://150.1.24.109/redfish/v1/Systems/1/Bios/Settings |
| 55 |
總結
以上是生活随笔為你收集整理的Redfish协议测试工具–Postman的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SubSonic的配置及运用
- 下一篇: matlab 电力系统分析 毕设,基于L