ข้ามไปที่เนื้อหาหลัก
ฐานความรู้เกี่ยวกับการสนับสนุน

การเปลี่ยนลําดับการบูทด้วย Redfish ในตระกูลผลิตภัณฑ์เซิร์ฟเวอร์ Intel® M50CYP

ประเภทข้อมูล: การแก้ไขปัญหา   |   ID บทความ: 000092811   |   การตรวจสอบครั้งล่าสุด: 25/04/2025

สิ่งแวดล้อม

ตระกูล ระบบเซิร์ฟเวอร์ Intel® M50CYP

คำอธิบาย

คุณสามารถใช้คําสั่ง Redfish ต่อไปนี้เพื่อเปลี่ยนลําดับการบู๊ตของระบบจากระยะไกลได้

คําสั่ง CURL ในระบบ Linux* เพื่ออ่านรายละเอียด 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

    เอาต์พุต: 1.

    % 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 Internal Shell เครื่องแรก

    คําสั่ง:
    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 รายการ

ข้อสงวนสิทธิ์

เนื้อหาในหน้านี้เป็นการผสมผสานระหว่างการแปลเนื้อหาต้นฉบับภาษาอังกฤษโดยมนุษย์และคอมพิวเตอร์ เนื้อหานี้จัดทำขึ้นเพื่อความสะดวกของคุณและเพื่อเป็นข้อมูลทั่วไปเท่านั้นและไม่ควรอ้างอิงว่าสมบูรณ์หรือถูกต้อง หากมีความขัดแย้งใด ๆ ระหว่างเวอร์ชันภาษาอังกฤษของหน้านี้กับคำแปล เวอร์ชันภาษาอังกฤษจะมีผลเหนือกว่าและควบคุม ดูเวอร์ชันภาษาอังกฤษของหน้านี้

ต้องการความช่วยเหลือเพิ่มเติมหรือไม่?

ติดต่อฝ่ายสนับสนุน
ติดต่อฝ่ายสนับสนุน