跳转至主要内容
支持知识库

在英特尔®服务器 M50CYP 产品家族上使用 Redfish 更改引导顺序

内容类型: 故障排除   |   文章 ID: 000092811   |   上次审核日期: 2025 年 04 月 25 日

环境

英特尔® 服务器系统 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

相关产品

本文适用于 3 产品。

免责声明

本页面上的内容是原始英文内容的人工翻译与计算机翻译的组合。我们提供此内容是为了您的便利并且仅供参考,未必完整或准确。如果本页面的英文版与翻译版之间存在任何冲突,应以英文版为准。 查看此页面的英语版本。