Start a Conversation

Unsolved

S

1 Rookie

 • 

4 Posts

764

March 15th, 2024 08:00

Is there a way to set the boot order through redfish?

I have a R730 with following settings. And I want to change the boot order

```json

{
  "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
  "@odata.id": "/redfish/v1/Systems/System.Embedded.1",
  "@odata.type": "#ComputerSystem.v1_5_0.ComputerSystem",
  "Actions": {
    "#ComputerSystem.Reset": {
      "ResetType@Redfish.AllowableValues": [
        "On",
        "ForceOff",
        "ForceRestart",
        "GracefulShutdown",
        "PushPowerButton",
        "Nmi"
      ],
      "target": "/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset"
    }
  },
  "AssetTag": "",
  "Bios": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Bios"
  },
  "BiosVersion": "2.1.7",
  "Boot": {
    "BootOptions": {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootOptions"
    },
    "BootOrder": [
      "NIC.Slot.5-1-1",
      "HardDisk.List.1-1",
      "Optical.SATAEmbedded.J-1",
      "NIC.Slot.5-2-1"
    ],
    "BootOrder@odata.count": 4,
    "BootSourceOverrideEnabled": "Once",
    "BootSourceOverrideMode": "Legacy",
    "BootSourceOverrideTarget": "None",
    "BootSourceOverrideTarget@Redfish.AllowableValues": [
      "None",
      "Pxe",
      "Cd",
      "Floppy",
      "Hdd",
      "BiosSetup",
      "Utilities",
      "UefiTarget",
      "SDCard",
      "UefiHttp"
    ],
    "UefiTargetBootSourceOverride": ""
  },
  "Description": "Computer System which represents a machine (physical or virtual) and the local resources such as memory, cpu and other devices that can be accessed from that machine.",
  "EthernetInterfaces": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/EthernetInterfaces"
  },
  "HostName": "DESKTOP-ILOD4KQ",
  "HostWatchdogTimer": {
    "FunctionEnabled": false,
    "Status": {
      "State": "Disabled"
    },
    "TimeoutAction": "None"
  },
  "Id": "System.Embedded.1",
  "IndicatorLED": "Off",
  "Links": {
    "Chassis": [
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
      }
    ],
    "Chassis@odata.count": 1,
    "CooledBy": [
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.1"
      },
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.2"
      },
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.3"
      },
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.4"
      },
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.5"
      },
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Sensors/Fans/0x17%7C%7CFan.Embedded.6"
      }
    ],
    "CooledBy@odata.count": 6,
    "ManagedBy": [
      {
        "@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1"
      }
    ],
    "ManagedBy@odata.count": 1,
    "Oem": {
      "DELL": {
        "@odata.type": "#DellComputerSystem.v1_0_0.DellComputerSystem",
        "BootOrder": {
          "@odata.id": "/redfish/v1/Systems/System.Embedded.1/BootSources"
        }
      }
    },
    "PoweredBy": [
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.1"
      },
      {
        "@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerSupplies/PSU.Slot.2"
      }
    ],
    "PoweredBy@odata.count": 2
  },
  "Manufacturer": "Dell Inc.",
  "Memory": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Memory"
  },
  "MemorySummary": {
    "Status": {
      "Health": "OK",
      "HealthRollup": "OK",
      "State": "Enabled"
    },
    "TotalSystemMemoryGiB": 64
  },
  "Model": "PowerEdge R730",
  "Name": "System",
  "NetworkInterfaces": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/NetworkInterfaces"
  },
  "PCIeDevices": [
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/10-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-23"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-29"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-31"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/3-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/2-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/1-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-49"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-26"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-3"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/0-28"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeDevice/5-0"
    }
  ],
  "PCIeDevices@odata.count": 13,
  "PCIeFunctions": [
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/10-0-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-23-4"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-0-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-29-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-31-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/3-0-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/2-0-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/2-0-1"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/1-0-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/1-0-1"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-49-2"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-26-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-3-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-3-1"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-28-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/0-28-7"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/5-0-0"
    },
    {
      "@odata.id": "/redfish/v1/Systems/System.Embedded.1/PCIeFunction/5-0-1"
    }
  ],
  "PCIeFunctions@odata.count": 18,
  "PartNumber": "0WCJNTA01",
  "PowerState": "On",
  "ProcessorSummary": {
    "Count": 2,
    "LogicalProcessorCount": 48,
    "Model": "Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.50GHz",
    "Status": {
      "Health": "OK",
      "HealthRollup": "OK",
      "State": "Enabled"
    }
  },
  "Processors": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Processors"
  },
  "SKU": "127TXD2",
  "SecureBoot": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/SecureBoot"
  },
  "SerialNumber": "CN7016365Q00K6",
  "SimpleStorage": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/SimpleStorage/Controllers"
  },
  "Status": {
    "Health": "Critical",
    "HealthRollup": "Critical",
    "State": "Enabled"
  },
  "Storage": {
    "@odata.id": "/redfish/v1/Systems/System.Embedded.1/Storage"
  },
  "SystemType": "Physical",
  "UUID": "4c4c4544-0032-3710-8054-b1c04f584432"
}

```

I tried HTTP PATCH on path `redfish/v1/Systems/System.Embedded.1/` with 

```json

  {"BootOrder": {
"BootOrder": [

     "HardDisk.List.1-1",
      "NIC.Slot.5-1-1",
      "Optical.SATAEmbedded.J-1",
      "NIC.Slot.5-2-1"
    ]
  }
    }

```

But I failed

Moderator

 • 

9.5K Posts

March 15th, 2024 16:45

Slone123c,

 

It looks like the issue may be with the payload, or maybe since you are using the iDrac8, as I am not certain if that API supports PATCH on that version. 
What I would expect the payload to look like would be 

 

{"Boot":{"BootOrder":["HardDisk.List.1-1","NIC.Slot.5-1-1","Optical.SATAEmbedded.J-1","NIC.Slot.5-2-1"]}}

 

Now if that payload doesn't work, would you please share the error you are seeing, and we can go from there. 

 

Let me know if this helps.

 

1 Rookie

 • 

4 Posts

March 18th, 2024 03:36

Hi there, thank you for your response!

Yes I am using  iDrac8.

Under path `redfish/v1/Systems/System.Embedded.1/` with HTTP PATCH

and with body content

```json

{"Boot":{"BootOrder":["HardDisk.List.1-1","NIC.Slot.5-1-1","Optical.SATAEmbedded.J-1","NIC.Slot.5-2-1"
]}
}

```

I got the following response:

```json

{
  "error": {
    "@Message.ExtendedInfo": [
      {
        "Message": "Specified Boot Control List is read-only",
        "MessageArgs": [],
        "MessageArgs@odata.count": 0,
        "MessageId": "IDRAC.1.6.BOOT018",
        "RelatedProperties": [
          "BootOrder"
        ],
        "RelatedProperties@odata.count": 1,
        "Resolution": "Refer to the documentation on validity of operation for the Boot Control List specified. For more information on the operation, see Lifecycle Controller-Remote Services documentation.",
        "Severity": "Warning"
      }
    ],
    "code": "Base.1.2.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information"
  }
}

```

So I can see `Boot Control List is read-only`,  that means this should be worked but some settings affects it?

Moderator

 • 

5.2K Posts

March 18th, 2024 07:14

Hello, could you see if this would help?
https://dell.to/49XGJad

Respectfully,

No Events found!

Top