fwupd/plugins/redfish
Richard Hughes 99df74f0c2 Add API to wait for a device
This allows us to ignore all the delays when the device is emulated, with the
idea being to do dozens of device emulations in the CI tests.

Also, do not call fu_progress_sleep() when the device is emulated.
2023-02-01 09:42:08 +00:00
..
tests redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
fu-ipmi-device.c trivial: Some clang-format fixups 2022-06-22 15:55:32 +01:00
fu-ipmi-device.h redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
fu-redfish-backend.c redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
fu-redfish-backend.h redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
fu-redfish-common.c redfish: Do not print unhelpful coldplug text 2022-05-24 14:45:56 +01:00
fu-redfish-common.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-device.c Add API to wait for a device 2023-02-01 09:42:08 +00:00
fu-redfish-device.h redfish: Don't reboot the BMC for all updates 2022-05-26 11:55:32 +01:00
fu-redfish-legacy-device.c Remove the recently added fu_progress_add_step_full() 2022-06-03 13:47:11 -05:00
fu-redfish-legacy-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-multipart-device.c Remove the recently added fu_progress_add_step_full() 2022-06-03 13:47:11 -05:00
fu-redfish-multipart-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-network-device.c redfish: Be more helpful when debugging connection failures 2022-06-10 13:15:08 +01:00
fu-redfish-network-device.h redfish: Be more helpful when debugging connection failures 2022-06-10 13:15:08 +01:00
fu-redfish-network.c trivial: skip self tests that fail with G_IO_ERROR_NOT_DIRECTORY 2023-01-05 09:20:35 +00:00
fu-redfish-network.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-plugin.c Add API to wait for a device 2023-02-01 09:42:08 +00:00
fu-redfish-plugin.h redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
fu-redfish-request.c redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
fu-redfish-request.h redfish: Allow specifying the request type 2022-04-15 07:43:09 +01:00
fu-redfish-smbios.c redfish: Use the passed offset when parsing SMBIOS tables 2022-09-09 19:23:29 +01:00
fu-redfish-smbios.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-smc-device.c redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
fu-redfish-smc-device.h redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
fu-self-test.c redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00
meson.build trivial: Make the installed-tests redfish.conf secure to avoid a warning 2023-01-17 19:29:39 +00:00
README.md Include the plugin README text in the generated docs 2023-01-10 14:58:30 +00:00
redfish.conf redfish: Use the correct key name for BMC reboot 2022-05-24 13:01:12 +01:00
redfish.quirk redfish: Implement updates for Supermicro machines 2022-10-06 12:49:49 +01:00

title: Plugin: Redfish

Introduction

Redfish is an open industry standard specification and schema that helps enable simple and secure management of modern scalable platform hardware.

By specifying a RESTful interface and utilizing JSON and OData, Redfish helps customers integrate solutions within their existing tool chains.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in an unspecified binary file format.

This plugin supports the following protocol ID:

  • org.dmtf.redfish

GUID Generation

These devices use the provided GUID provided in the SoftwareId property without modification if it is a valid GUID. If the property is not a GUID then the vendor instance ID is used instead:

  • REDFISH\\VENDOR_${RedfishManufacturer}&SOFTWAREID_${RedfishSoftwareId}

Additionally, this Instance ID is added for quirk and parent matching:

  • REDFISH\VENDOR_${RedfishManufacturer}&ID_${RedfishId}

Update Behavior

The firmware will be deployed as appropriate. The Redfish API does not specify when the firmware will actually be written to the SPI device.

Vendor ID Security

No vendor ID is set as there is no vendor field in the schema.

Quirk Use

This plugin uses the following plugin-specific quirks:

RedfishResetPreDelay

Delay in ms to use before querying the manager after a cleanup reset, default 0ms.

Since: 1.8.0

RedfishResetPostDelay

Delay in ms to use before querying /redfish/v1/UpdateService after a cleanup reset, default 0ms.

Since: 1.8.0

Setting Service IP Manually

The service IP may not be automatically discoverable due to the absence of Type 42 entry in SMBIOS. In this case, you have to specify the service IP to RedfishUri in /etc/fwupd/redfish.conf

Take HPE Gen10 for example, the service IP can be found with the following command:

ilorest --nologo list --selector=EthernetInterface. -j

This command lists all network interfaces, and the Redfish service IP belongs to one of "Manager Network" Interfaces. For example:

    {
      "@odata.context": "/redfish/v1/$metadata#EthernetInterface.EthernetInterface",
      "@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces/1/",
      "@odata.type": "#EthernetInterface.v1_0_3.EthernetInterface",
      "Description": "Configuration of this Manager Network Interface",
      "HostName": "myredfish",
      "IPv4Addresses": [
        {
          "SubnetMask": "255.255.255.0",
          "AddressOrigin": "DHCP",
          "Gateway": "192.168.0.1",
          "Address": "192.168.0.133"
        }
      ],
      ...

In this example, the service IP is "192.168.0.133".

Since the conventional HTTP port is 80 and HTTPS port is 443, we can set RedfishUri to either "http://192.168.0.133:80" or "https://192.168.0.133:443" and verify the uri with

curl http://192.168.0.133:80/redfish/v1/

or

curl -k https://192.168.0.133:443/redfish/v1/

External Interface Access

This requires HTTP access to a given URL.