Redfish - Inspur NF8480M5 User Manual

Table of Contents

Advertisement

9.28 Redfish

Redfish is a new management standard that uses the hypermedia RESTful interface to
express data. It is oriented to the model, can express the relationship between modern
system components and the semantics of services and components, and be easy to expand.
For servers that provide Redfish, the client can obtain the BMC information by sending
HTTP request and specify the operation for the BMC.
The client can access the Redfish service through the HTTP client. The following is the use of
curl in Linux to send the request to access redfish. The usual request operation is "GET", "PUT",
"POST", "PATCH", "DELETE" and so on. The sending and receiving data are all in json format.
The username and password below must be BMC users with administrator privileges.
9.28.1 GET
The client gets the data of the specified URL via HTTP GET. The basic format is as follows:
curl -k -u username:password https://IP/redfish/v1/Chassis
9.28.2 POST
The client sends data to the specified URL via HTTP POST, and the server is configured
according to the POST data. The basic format is as follows:
curl -k -u username:password https://IP/redfish/v1/Systems/System1/Actions/ComputerSystem.
Reset -X POST -H 'Content-Type: application/json' -d '{"ResetType":"ForceOff"}'
Note:
https://IP/redfish/v1/Systems/System1/Actions/ComputerSystem.Reset is the requested URL.
-H The parameter is the format of the requested data.
-d The parameter is the requested data.
9.28.3 DELETE
The client deletes the data of the specified URL via HTTP DELTE, and the server deletes
configurations according to the URL. The basic format is as follows:
curl -k -u username:password https://IP/redfish/v1/SessionService/Sessions/2e630a6d5908
34cc06tTbziU5Wzqzg -X DELETE
Note:
https://IP/redfish/v1/SessionService/Sessions/2e630a6d590834cc06tTbziU5Wzqzg is the
144

Advertisement

Table of Contents
loading

Table of Contents