Skip to content

Instantly share code, notes, and snippets.

@joelrebel
Last active August 12, 2024 15:49
Show Gist options
  • Save joelrebel/d1ff19e67fd56c3f145e0259b12537b4 to your computer and use it in GitHub Desktop.
Save joelrebel/d1ff19e67fd56c3f145e0259b12537b4 to your computer and use it in GitHub Desktop.

❯ curl -sk -u user:pass https://<>/redfish/v1/Systems/1/ | jq .Boot

{
  "BootSourceOverrideEnabled": "Disabled",
  "BootSourceOverrideMode": "UEFI",
  "BootSourceOverrideTarget": "Pxe",
  "[email protected]": [
    "None",
    "Pxe",
    "Floppy",
    "Cd",
    "Usb",
    "Hdd",
    "BiosSetup",
    "UsbCd",
    "UefiBootNext",
    "UefiHttp"
  ],
  "BootOptions": {
    "@odata.id": "/redfish/v1/Systems/1/BootOptions"
  },
  "BootNext": "",
  "BootOrder": [
    "Boot0003",
    "Boot0006",
    "Boot0007",
    "Boot0008",
    "Boot0005"
  ]
}

❯ curl -sk -u user:pass https://<>/redfish/v1/Systems/1/BootOptions | jq .

{
  "@odata.type": "#BootOptionCollection.BootOptionCollection",
  "@odata.id": "/redfish/v1/Systems/1/BootOptions",
  "Id": "1",
  "Name": "Boot Option Collection",
  "[email protected]": 5,
  "Members": [
    {
      "@odata.id": "/redfish/v1/Systems/1/BootOptions/Boot0003"
    },
    {
      "@odata.id": "/redfish/v1/Systems/1/BootOptions/Boot0006"
    },
    {
      "@odata.id": "/redfish/v1/Systems/1/BootOptions/Boot0007"
    },
    {
      "@odata.id": "/redfish/v1/Systems/1/BootOptions/Boot0008"
    },
    {
      "@odata.id": "/redfish/v1/Systems/1/BootOptions/Boot0005"
    }
  ]
}

❯ curl -sk -u user:pass https://<>/redfish/v1/Systems/1/BootOptions/Boot0003 | jq .

{
  "@odata.type": "#BootOption.v1_0_3.BootOption",
  "@odata.id": "/redfish/v1/Systems/1/BootOptions/Boot0003",
  "Id": "Boot0003",
  "Name": "Boot Option",
  "Description": "UEFI Boot Option",
  "BootOptionEnabled": true,
  "BootOptionReference": "Boot0003",
  "DisplayName": "(B1/D0/F0) UEFI PXE IPv4 Intel(R) Ethernet Network Adapter E810-XXV-2(MAC:507c6f229190)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment