透過 CLI 安裝 SONiC OS 安裝
Summary: 透過 CLI 安裝 SONiC OS 安裝
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
先決條件:
指示:
影像清單和狀態:檢查目前開機的作業系統映射,以及下次重新開機時將開機的映射。
設定預設開機影像:變更交換器將在下次開機時使用的作業系統映射。
在 SONiC 中變更預設開機映射所需的步驟到此結束。
如需進一步協助,請參閱《Dell EMC Enterprise SONiC User Guide》(Dell EMC Enterprise SONiC 使用者指南) 版本檔、Dell SONiC 快速入門手冊,或聯絡 Dell EMC 技術支援部門。
- 主動連線至交換器。
- 已載入作業系統軟體的檔案伺服器詳細資料。交換器必須提供 HTTP 服務。
指示:
影像清單和狀態:檢查目前開機的作業系統映射,以及下次重新開機時將開機的映射。
- 在 SONiC CLI 提示中,使用「show image list」命令來顯示目前作用中的映射,以及下次重新開機時會載入哪個版本。
SONIC# show image list Current: SONiC-OS-4.0.1-Enterprise_Base Next: SONiC-OS-4.0.1-Enterprise_Base Available: SONiC-OS-4.0.1-Enterprise_Base SONIC#
- 使用「映射安裝 HTTP://[IP]/[image_name]] 命令,將新映射安裝至下一個插槽,將于下次開機時載入
SONIC# SONIC# image install http://10.0.0.200/SONiC-OS-4.0.3-Enterprise_Base.bin %Info: Check 'show image status' for image install progress. SONIC#
- 若要檢查映射下載程式的狀態,然後檢查安裝進度,請使用「show image status」命令。
SONIC# show image status ----------------------------------------------------------- Global operation status : GLOBAL_STATE_DOWNLOAD ----------------------------------------------------------- File operation status : TRANSFER_DOWNLOAD File size(bytes) : 959070190 File transfer bytes : 253968384 File progress : 26% Transfer start time : 2023-02-03 20:14:45+0000 Transfer end time : N/A ----------------------------------------------------------- SONIC#
- 數分鐘後,再次執行「show image status」命令,並確認安裝進度。請注意,「傳輸結束時間」已完成,「Install operation status」區段中現在有額外的「INSTALL_PROGRESS」。
SONIC# show image status ----------------------------------------------------------- Global operation status : GLOBAL_STATE_INSTALL ----------------------------------------------------------- File operation status : TRANSFER_STATE_SUCCESS File size(bytes) : 959070190 File transfer bytes : 959070190 File progress : 100% Transfer start time : 2023-02-03 20:14:45+0000 Transfer end time : 2023-02-03 20:16:02+0000 ----------------------------------------------------------- Install operation status : INSTALL_PROGRESS Install start time : 2023-02-03 20:16:02+0000 Install end time : N/A SONIC#
- 額外數分鐘後,請再次執行「show image status」,並記下「INSTALL_STATE_SUCCESS」和「Install end time」欄位已更新。
SONIC# show image status ----------------------------------------------------------- Global operation status : GLOBAL_STATE_INSTALL ----------------------------------------------------------- File operation status : TRANSFER_STATE_SUCCESS File size(bytes) : 959070190 File transfer bytes : 959070190 File progress : 100% Transfer start time : 2023-02-03 20:14:45+0000 Transfer end time : 2023-02-03 20:16:02+0000 ----------------------------------------------------------- Install operation status : INSTALL_STATE_SUCCESS Install start time : 2023-02-03 20:16:02+0000 Install end time : 2023-02-03 20:18:06+0000 SONIC#
- 「show image list」命令會顯示在下次開機時會使用新映射。目前和新映射皆會列為本機交換器上可用的選項。
SONIC# show image list Current: SONiC-OS-4.0.1-Enterprise_Base Next: SONiC-OS-4.0.3-Enterprise_Base Available: SONiC-OS-4.0.1-Enterprise_Base SONiC-OS-4.0.3-Enterprise_Base SONIC#
設定預設開機影像:變更交換器將在下次開機時使用的作業系統映射。
- 若要在下次重載時顯示要開機的映射版本,請使用「show image list」命令。
SONIC# SONIC# show image list Current: SONiC-OS-4.0.1-Enterprise_Base Next: SONiC-OS-4.0.1-Enterprise_Base Available: SONiC-OS-4.0.1-Enterprise_Base SONiC-OS-4.0.3-Enterprise_Base SONIC#
- 若要變更作業系統映射,交換器將在下次開機時使用,請使用「映射設定預設 [映射名稱]」 命令。若要確認變更,請再次執行「show image list」命令,以驗證下次開機的映射。
SONIC# show image list Current: SONiC-OS-4.0.3-Enterprise_Advanced Next: SONiC-OS-4.1.0-Enterprise_Premium Available: SONiC-OS-4.0.3-Enterprise_Advanced SONiC-OS-4.1.0-Enterprise_Premium SONIC# image set-default SONiC-OS-4.0.3-Enterprise_Advanced SONIC# show image list Current: SONiC-OS-4.0.3-Enterprise_Advanced Next: SONiC-OS-4.0.3-Enterprise_Advanced Available: SONiC-OS-4.0.3-Enterprise_Advanced SONiC-OS-4.1.0-Enterprise_Premium SONIC#
在 SONiC 中變更預設開機映射所需的步驟到此結束。
如需進一步協助,請參閱《Dell EMC Enterprise SONiC User Guide》(Dell EMC Enterprise SONiC 使用者指南) 版本檔、Dell SONiC 快速入門手冊,或聯絡 Dell EMC 技術支援部門。
Affected Products
Enterprise SONiC DistributionArticle Properties
Article Number: 000213661
Article Type: How To
Last Modified: 06 Dec 2023
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.