Redfish: a web-style way to manage servers

Video 058 of 140 in Virtualization Foundations, in the unit “Server hardware and out-of-band management”. 4:52, with English and Hindi audio.

Most modern software talks to services over HTTPS and reads its answers as JSON, a structured text format. Redfish brings that same style to server management. This article explains what Redfish is, how it compares with the older command-line approach, what a first request looks like with curl, and which cautions matter when a script reads or changes servers.

What you will learn

Why web-style management suits scripts

Most modern software reaches its services over HTTPS, the encrypted form of web traffic. It reads the answers as JSON. A script or a browser can use that style without special management software, which makes it easy to automate.

Redfish is a standard API for managing servers. An API is a set of web addresses that a program can call. You send a request over HTTPS, and the server answers with JSON data about its own parts. Many server makers support Redfish, so the same style of request can reach more than one brand.

Redfish compared with IPMI

Both let you reach a server's management controller over the network. The difference is the style of the conversation, not the goal.

A first request with curl

The curl tool sends a web request from the command line. This request reads the list of servers that the BMC manages, over HTTPS. Treat it as a first test of the connection, not as a finished script.

Send a read request to a BMC over HTTPS
curl -sk -u ops-readonly https://192.0.2.21/redfish/v1/Systems/

The -u option gives the user name. The -k option skips certificate checks. That is acceptable for a first test, but not for production.

Read requests and change requests

A request that only reads is safe to repeat. A request that changes something, such as a power action, is a write. Changing power is sent as a POST request, which is an instruction to the server, not a question about it.

Cautions before you automate

Terms

Redfish
A standard API for managing servers. You send requests over HTTPS, and it answers with JSON data.
API
A set of web addresses that a program can call to read or change data.
JSON
A structured text format that programs can read, and that people can read too.

Check yourself

How does a Redfish request travel to the BMC?

Over HTTPS, the encrypted form of web traffic, and the answer comes back as JSON data.

Why is a read request easier to repeat than a change?

A read only asks for data. A change, such as a power action, alters the server, so it needs care.

What is the risk of switching off certificate checks everywhere?

You never confirm that you reached the real BMC, so a wrong service could answer in its place.

Previous: IPMI and the ipmitool command. Next: Remote console and virtual media.