fwupd/plugins/redfish
Richard Hughes 40cd18fa97 Allow using a per-device global percentage completion
It's actually quite hard to build a front-end for fwupd at the moment
as you're never sure when the progress bar is going to zip back to 0%
and start all over again. Some plugins go 0..100% for write, others
go 0..100% for erase, then again for write, then *again* for verify.

By creating a helper object we can easily split up the progress of the
specific task, e.g. write_firmware().

We can encode at the plugin level "the erase takes 50% of the time, the
write takes 40% and the read takes 10%". This means we can have a
progressbar which goes up just once at a consistent speed.
2021-09-13 14:28:15 +01:00
..
tests trivial: redfish: remove duplicate dictionary key 2021-08-18 07:58:17 -05:00
fu-ipmi-device.c redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
fu-ipmi-device.h redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
fu-plugin-redfish.c redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
fu-redfish-backend.c redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +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 trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05: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 Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-redfish-device.h Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-redfish-legacy-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01: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 Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01: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 trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-network-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-network.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-network.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-request.c redfish: Refactor the PATCH modify code 2021-09-07 17:25:37 +01:00
fu-redfish-request.h redfish: Refactor the PATCH modify code 2021-09-07 17:25:37 +01:00
fu-redfish-smbios.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-redfish-smbios.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-self-test.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fwupd-redfish.conf redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
meson.build redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00
redfish.conf redfish: Create user accounts automatically using IPMI 2021-09-07 17:25:37 +01:00
redfish.quirk redfish: Add a per-vendor quirk to set all devices as requiring a reboot 2021-08-06 20:51:22 +01:00

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.

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.