|
Post by amithalperin on Aug 27, 2023 14:05:55 GMT
hello friends, i would like to know how can i change the boot order in cimc via redfish api. I tried to patch the payload: "Boot": { "BootSourceOverrideTarget": "Pxe", "BootSourceOverrideEnabled": "Once" }
to the path /redfish/v1/Systems/SERIAL.NUMBER and it gives me an error: either abandon the operation or change the associated access right and resubmit the request if the operation failed
finally i want that the server will boot(next boot) from adapter 1 port 1 ipv4 (Pxe)
|
|
|
Post by mraineri on Aug 28, 2023 12:53:14 GMT
Do you have the full response? Looking at the payload that looks correct (assuming you also wrapped everything with curly braces to make the payload a JSON object). Can you provide the output of this curl request?
curl -k -u USER:PASS -H "Content-Type: application/json" -X PATCH https://BMCIP/redfish/v1/Systems/SERIAL.NUMBER -d '{"Boot":{"BootSourceOverrideTarget": "Pxe","BootSourceOverrideEnabled": "Once"}}' -vvvvv
|
|
|
Post by amithalperin on Nov 2, 2023 11:39:30 GMT
Hi, I have a question about this. When I patch it it place the "Pxe over Ethernet" in the boot option 1, the built in "EFI Shell" in the boot option 2 and then the "pxe over Mellanox netwrk adapter" (that is what I need). How can I place specific "pxe over Mellanox netwrk adapter" in the first boot option? Or maybe can I put in the last boot options the "Pxe over Ethernet" and the "EFI Shell"?
|
|
|
Post by mraineri on Nov 2, 2023 12:13:27 GMT
When you use the "Pxe" enumeration in the Boot property, you leave the priority of which PXE device to use up to UEFI. If you want to boot from a specific PXE source, you'll need to specify that with the UefiTarget option. The payload would look something like this, where you replace UEFI_DEVICE_PATH with the UEFI device path of the specific device from which to boot.
{ "Boot": { "BootSourceOverrideTarget": "UefiTarget", "BootSourceOverrideEnabled": "Once", "UefiTargetBootSourceOverride": "UEFI_DEVICE_PATH" } }
|
|