// This is included in the following assemblies:
//
// * installing/installing_bare_metal/bare-metal-postinstallation-configuration.adoc

:_mod-docs-content-type: PROCEDURE
[id="bmo-getting-the-hostfirmwarecomponents-resource_nic_{context}"]
= Identifying the NICs HostFirmwareComponents resources you can update

[role="_abstract"]
You can use the Redfish `NetworkAdapters` resource to identify network interface controllers (NICs) that were added to the `HostFirmwareComponents` custom resource (CR). The NIC is displayed in the CR with the prefix `nic:` followed by the network adapter ID of the resource. For example, `nic:AD007`.

.Procedure

. Get the detailed list of `HostFirmwareComponents` NIC resources by running the following command:
+
[source,terminal]
----
$ curl -ksu “$USER:$PASS” https://<BMC>/redfish/v1/Chassis/<SystemID>/NetworkAdapters | jq .
----
The `<SystemID>` is based on the value that you set for `bmh` in the `spec.bmc.address`.
+
.Example output
[source,yaml]
----
{
  "@odata.context": "/redfish/v1/$metadata#NetworkAdapterCollection.NetworkAdapterCollection",
  "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters",
  "@odata.type": "#NetworkAdapterCollection.NetworkAdapterCollection",
  "Description": "Collection Of Network Adapter",
  "Members": [
    {
      "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Integrated.1"
    },
    {
      "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/NIC.Slot.3"
    }
  ],
  "Members@odata.count":2,
  "Name": "Network Adapter Collection"
}
----

. Identify the corresponding network adapter in the firmware inventory resource, as the network adapter does not indicate if you can update firmware with Redfish, by running the following command:
+
[source,terminal]
----
$ curl -ksu “$USER:$PASS” https://<BMC>/redfish/v1/UpdateService/FirmwareInventory | jq .
----
+
.Example output
[source,yaml]
----
{
  "@odata.context": "/redfish/v1/$metadata#SoftwareInventoryCollection.SoftwareInventoryCollection",
  "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory",
  "@odata.type": "#SoftwareInventoryCollection.SoftwareInventoryCollection",
  "Description": "Collection of Firmware Inventory",
  "Members": [
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-102303-22.0.9__NIC.Integrated.1-2-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-102303-22.0.9__NIC.Integrated.1-3-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-102303-22.0.9__NIC.Integrated.1-4-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-102378-22.0.9__NIC.Integrated.1-1-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-104480-14.31.22.50__NIC.Slot.3-1-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-104480-14.31.22.50__NIC.Slot.3-2-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Installed-102303-22.0.9__NIC.Integrated.1-2-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Installed-102303-22.0.9__NIC.Integrated.1-3-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Installed-102303-22.0.9__NIC.Integrated.1-4-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Installed-102378-22.0.9__NIC.Integrated.1-1-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Installed-104480-14.31.22.50__NIC.Slot.3-1-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Installed-104480-14.31.22.50__NIC.Slot.3-2-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Previous-102303-20.0.17__NIC.Integrated.1-2-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Previous-102303-20.0.17__NIC.Integrated.1-3-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Previous-102303-20.0.17__NIC.Integrated.1-4-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Previous-102378-20.0.17__NIC.Integrated.1-1-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Previous-104480-14.24.80.00__NIC.Slot.3-1-1"
    },
    {
      "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Previous-104480-14.24.80.00__NIC.Slot.3-2-1"
    }
  ],
  "Members@odata.count": 18,
  "Name": "Firmware Inventory Collection"
}
----

. Check if the parameter is set to `true` by running the following command:
+
[source,terminal]
----
$ curl -ksu "$USER:$PASS" https://<BMC>/redfish/v1/UpdateService/FirmwareInventory/Current-102303-22.0.9__NIC.Integrated.1-2-1 | jq .
----
+
.Example output
[source,yaml]
----
{
  "@odata.context": "/redfish/v1/$metadata#SoftwareInventory.SoftwareInventory",
  "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-102303-22.0.9__NIC.Integrated.1-2-1",
  "@odata.type": "#SoftwareInventory.v1_9_0.SoftwareInventory",
  "Description": "Represents Firmware Inventory",
  "Id": "Current-102303-22.0.9__NIC.Integrated.1-2-1",
  "Name": "Intel(R) Ethernet 10G X710 rNDC - E4:43:4B:4B:60:B1",
  "Oem": {
    "Dell": {
      "@odata.type": "#DellOem.v1_3_0.DellOemResources",
      "DellSoftwareInventory": {
        "@odata.context": "/redfish/v1/$metadata#DellSoftwareInventory.DellSoftwareInventory",
        "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Current-102303-22.0.9__NIC.Integrated.1-2-1/Oem/Dell/DellSoftwareInventory/DCIM:CURRENT_0x23_701__NIC.Integrated.1-2-1",
        "@odata.type": "#DellSoftwareInventory.v1_2_0.DellSoftwareInventory",
        "BuildNumber": 0,
        "Classifications": [
          "Firmware"
        ],
        "Classifications@odata.count": 1,
        "ComponentID": "102303",
        "ComponentType": "FRMW",
        "Description": "The DellSoftwareInventory resource is a representation of an available device firmware in the managed system.",
        "DeviceID": "1572",
        "ElementName": "Intel(R) Ethernet 10G X710 rNDC - E4:43:4B:4B:60:B1",
        "HashValue": "1158cfbfdf6cb387bc0806999b28b83892cfaf1307b466abd6546ff8e5ea1459",
        "Id": "DCIM:CURRENT_0x23_701__NIC.Integrated.1-2-1",
        "IdentityInfoType": [
          "OrgID:ComponentType:VendorID:DeviceID:SubVendorID:SubDeviceID"
        ],
        "IdentityInfoType@odata.count": 1,
        "IdentityInfoValue": [
          "DCIM:firmware:8086:1572:1028:0000"
        ],
        "IdentityInfoValue@odata.count": 1,
        "InstallationDate": "NA",
        "IsEntity": true,
        "MajorVersion": 22,
        "MinorVersion": 0,
        "Name": "DellSoftwareInventory",
        "PLDMCapabilitiesDuringUpdate": "0x00000000",
        "PLDMFDPCapabilitiesDuringUpdate": "0x00000000",
        "RevisionNumber": 9,
        "RevisionString": null,
        "SidebandUpdateCapable": false,
        "Status": "AvailableForInstallation",
        "SubDeviceID": "0000",
        "SubVendorID": "1028",
        "VendorID": "8086",
        "impactsTPMmeasurements": true
      }
    }
  },
  "ReleaseDate": "2023-03-03T00:00:00Z",
  "SoftwareId": "102303",
  "Status": {
    "Health": "OK",
    "State": "Enabled"
  },
  "Updateable": true,
  "Version": "22.0.9"
}
----
*  `Updateable`: Indicates the value the parameter is set to.

. Where the `Updateable` parameter is set to `true`, you can use Redfish to update the network adapter.
