1. curl -k -u root:calvin https://10.10.7.103/redfish/v1/ {"@odata.context":"/redfish/v1/$metadata#ServiceRoot.ServiceRoot","@odata.id":"/redfish/v1","@odata.type":"#ServiceRoot.v1_0_2.ServiceRoot","AccountService":{"@odata.id":"/redfish/v1/Managers/iDRAC.Embedded.1/Acco...
Redfish 是一种 REST API,因此可使用标准 REST 客户端与之进行交互。这些客户端包括常用的工具(如 curl),以及使用脚本语言(如 Python 和 PowerShell)进行本机访问。Postman 也是一种易用型 HTTP REST 客户端工具。可从https://www.getpostman.com/获取此工具。
The following curl command resets the BMC to factory defaults. curl -k -u <bmc-user>:<password> --request POST --location 'https://<bmc-ip-address>/redfish/v1/Managers/BMC/Actions/Manager.ResetToDefaults' --header 'Content-Type: application/json' --data '{"ResetType":"ResetAll"}'...
# The following Bash command creates a Redfish session and populates# the $TokenAndUrl array with the Session Token and the Location URL.TokenAndUrl=($(curl--silent --location --insecure --include\--request POST --header'Content-Type: application/json'\--data'@/tmp/data.json'\"https:...
$ curl -s localhost:8000/redfish/v1/Systems/437XR1138R2/Processors/CPU1 \ | jq .OperatingSpeedRangeMHz { "AllowableMax": 3700, "AllowableMin": 1200, "ControlMode": "Automatic", "DataSourceUri": "/redfish/v1/Chassis/1U/Controls/CPU1Freq", ...
在Minneapolis工作的银行资深系统管理员Thomas Ray表示,Redfish还帮助美国银行管理HPE和Cisco UCS的正式环境服务器。他用1月份发布的Redfish 1.1替代了用于UCS的XML API和用于HPE服务器的命令行界面(command-line interface,CLI)。同时他开始在HPE Gen9服务器上使用Redfish配合PowerShell和Curl,后来将其添加到UCS。
Accessing the common system management functions on the Redfish service by using cURL command The following examples show the client URL (cURL) commands that can be used to access the common functions that are supported by the eBMC Redfish APIs: ...
Setting the value totruein Redfish takes effect after BlueField reboot. However, if changed fromtruetofalse, an additional reboot is required since the unhide operation would not apply immediately due to the Redfish runtime sequence. This setting persists across reboots. ...
redfishtoolmakes it simple to use the Redfish API from a BASH script or interactively from a client command shell. While other generic HTTP clients such as Linux curl can send and receive Redfish requests,redfishtoolgoes well beyond these generic HTTP clients by automatically handling many of ...
$ curl -k -H"X-Auth-Token:$token"-X POST https://${bmc}/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.Reset Firmware ApplyTime: $ curl -k -H"X-Auth-Token:$token"\-X PATCH -d'{ "ApplyTime":"Immediate"}'https://${bmc}/redfish/v1/UpdateService or $ curl...