Modify Boot Order with Redfish

Modified on Wed, 15 Jan at 11:36 AM

This guide applies to:
    RPL
    SPR-M
    SPR-X
    3100-RL+
    3100-SM+
    3100-SX+
    3100-TX



To update the boot order via Redfish, you must modify /Systems/Self/SD instead of /Systems/Self



Example with curl:


curl -k -u "admin:admin123" https://192.168.0.108/redfish/v1/Systems/Self/SD -H "If-None-Match: sdsdsd" -H "Content-Type: application/json" -d '{"Boot": { "BootSourceOverrideTarget":"Pxe", "BootSourceOverrideEnabled": "Continuous" } }' -X PATCH


Please note that if using PowerShell, this will require additional escape character like so:


curl.exe -k -u "admin:admin123" https://192.168.0.108/redfish/v1/Systems/Self/SD -H "If-None-Match: sdsdsd" -H "Content-Type: application/json" -d '{\"Boot\": { \"BootSourceOverrideTarget\":\"Pxe\", \"BootSourceOverrideEnabled\": \"Continuous\" } }' -X PATCH


Note that a soft reboot will not apply the Boot Override, the system must be power cycled. You can do this by powering off the device and powering it on again via:


  • Power off device:

 

Type

POST

Target

/redfish/v1/Chassis/Self/Actions/Chassis.Reset

Body

{

                "ResetType": "GracefulShutdown"

 

  • Power on device

Type

POST

Target

/redfish/v1/Chassis/Self/Actions/Chassis.Reset

Body

{

                "ResetType": "On"

 


Please also reference:


  • /redfish/v1/Systems/Self/SD for the full list of boot order and boot override variables.
  • /redfish/v1/Chassis/Self/ResetActionInfo for the system power commands
  • /redfish/v1/Systems/Self/BootOptions/[BootID] for individual boot options




/redfish/v1/Systems/Self/SD 


"Boot":{

"BootNext":null,

"BootOptions":{"@odata.id":"/redfish/v1/Systems/Self/BootOptions"},

"BootOrder":["Boot0003","Boot0004","Boot0007","Boot0006"],

"BootOrderPropertySelection":"BootOrder",

"BootSourceOverrideEnabled":"Disabled",

"[email protected]":["Disabled","Once","Continuous"],

"BootSourceOverrideMode":null,

"[email protected]":["Legacy","UEFI"],

"BootSourceOverrideTarget":"None",

"[email protected]":["None","Pxe","Floppy","Cd","Usb","Hdd","BiosSetup","Utilities","Diags","UefiShell","UefiTarget","SDCard","UefiHttp","RemoteDrive","UefiBootNext"],

"Certificates":{"@odata.id":"/redfish/v1/Systems/Self/Boot/Certificates"},"UefiTargetBootSourceOverride":null}


/redfish/v1/Chassis/Self/ResetActionInfo 


{
  "@odata.context": "/redfish/v1/$metadata#ActionInfo.ActionInfo",
  "@odata.etag": "\"1736866348\"",
  "@odata.id": "/redfish/v1/Chassis/Self/ResetActionInfo",
  "@odata.type": "#ActionInfo.v1_1_2.ActionInfo",
  "Description": "This action is used to reset the Chassis",
  "Id": "ResetAction",
  "Name": "ResetAction",
  "Parameters": [
    {
      "AllowableValues": [
        "ForceOff",
        "ForceRestart",
        "GracefulShutdown",
        "On"
      ],
      "DataType": "String",
      "Name": "ResetType",
      "Required": true
    }
  ]
}



/redfish/v1/Systems/Self/BootOptions/000C

{
  "@Redfish.Settings": {
    "@odata.type": "#Settings.v1_2_2.Settings",
    "SettingsObject": {
      "@odata.id": "/redfish/v1/Systems/Self/BootOptions/000C/SD"
    }
  },
  "@odata.context": "/redfish/v1/$metadata#BootOption.BootOption",
  "@odata.etag": "\"1736865235\"",
  "@odata.id": "/redfish/v1/Systems/Self/BootOptions/000C",
  "@odata.type": "#BootOption.v1_0_3.BootOption",
  "Alias": "Cd",
  "BootOptionEnabled": true,
  "BootOptionReference": "Boot000C",
  "Description": "UEFI: AMI Virtual CDROM0 1.00",
  "DisplayName": "UEFI: AMI Virtual CDROM0 1.00",
  "Id": "000C",
  "Name": "Boot000C",
  "[email protected]": 0,
  "UefiDevicePath": "PciRoot(0x0)/Pci(0x14,0x0)/USB(0xC,0x0)/USB(0x0,0x0)/CDROM(0x1,0x488,0x378C)"
}




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article