Article ID: 000092811 Content Type: Troubleshooting Last Reviewed: 11/01/2022

How to Change Boot Order Using Redfish Commands in Intel® Server System M50CYP Family

Environment

Intel® Server System M50CYP Family

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Change boot order using Redfish commands in Intel® Server System M50CYP Family

Description

Following Redfish commands can be used to change the boot order of the system remotely. 

CURL command in a Linux* system to read the Redfish API details of a remote system.
Activity requires Python3*, Curl* and jq to be installed in the system. 

 

Resolution
  1. Use below command to get the system id:

    Command:
    [root@ocsbesrhlrepo01 ~]# curl -k -u username: password https://<ip address> /redfish/v1/Systems -H "content-type:application/json" -X GET |  python3 -m json.tool  

    Output:

    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   460  100   460    0     0    218      0  0:00:02  0:00:02 --:--:--   218
    {
        "@odata.context": "/redfish/v1/$metadata#ComputerSystemCollection.ComputerSystemCollection",
        "@odata.id": "/redfish/v1/Systems",
        "@odata.type": "#ComputerSystemCollection.ComputerSystemCollection",
        "Name": "Computer System Collection",
        "Members@odata.count": 1,
        "Members": [
            {
                "@odata.id": "/redfish/v1/Systems/............
    "
            }
        ],
       

  2. Check the existing boot options using below command.

    Command:
    [root@ocsbesrhlrepo01 ~]# curl -k -u username: password https://<ip address>/redfish/v1/Systems/............ -H "content-type:application/json" -X GET |  python3 -m json.tool

     

    Output: 

      "BootOrder": [
                "UEFI INTEL SSDSCKKB240G8 PHYH02610986240J ",
                "Enter Setup",
                "Boot Device List",
                "Network Boot",
                "UEFI Internal Shell"

  3. Change boot order using below command. For example, change first boot device to UEFI Internal Shell. 

    Command:
    curl -k -u username: password https://<ip address>/redfish/v1/Systems/............ -H "content-type:application/json" --data '{"Boot":{"BootSourceOverideEnabled":"Continuous", "BootSourceOverrideTarget":"None", "BootOrder":["UEFI Internal Shell"]}}' -X PATCH |  python3 -m json.tool

  4. Restart the system.

    Command:
    curl -k -u username: password https://<ip address>/redfish/v1/Systems/............/Actions/ComputerSystem.Reset -H "content-type:application/json" --data '{"ResetType":"ForceRestart"}' -X POST |  python3 -m json.tool
     

Related Products

This article applies to 1 products