跳到主要內容
支援知識庫

使用 Redfish 變更 Intel® 伺服器 M50CYP 產品系列上的開機順序

內容類型: 疑難排解   |   文章 ID: 000092811   |   最近查看日期: 2025 年 04 月 25 日

環境

Intel® 伺服器系統 M50CYP 系列

描述

以下 Redfish 命令可用於遠端更改系統的引導順序。

Linux* 系統中的 CURL 命令,用於讀取遠端系統的 Redfish API 詳細資訊。
活動需要在系統中安裝 Python3*、Curl* 和 jq。

解決方法

  1. 使用以下命令獲取 系統ID

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

    輸出

    % 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. 使用以下命令檢查現有的引導選項

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

    輸出:

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

  3. 使用以下命令更改 引導順序。例如,首先引導設備更改為 UEFI 內部外殼。

    命令
    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. 重新啟動 系統。

    命令:
    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

免責聲明

這個頁面的內容綜合了英文原始內容的人工翻譯譯文與機器翻譯譯文。本內容是基於一般資訊目的,方便您參考而提供,不應視同完整或準確的內容。如果這個頁面的英文版與譯文之間發生任何牴觸,將受英文版規範及管轄。 查看這個頁面的英文版。