Dell Networking SONiC:使用 SCP 通訊協定搭配 WINSCP 等軟體升級或降級 SONiC
Summary: 本文說明在 WINSCP 應用程式中使用 SCP 通訊協定升級或降級 Dell Networking SONiC。
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
注意:您可以使用任何支援 SCP 通訊協定的應用程式,將韌體檔案上傳至交換器。在本文中,我們使用 WINSCP 應用程式來演示該過程。
步驟:
- 請確認交換器中有足夠的空間可複製 SONiC 檔案。使用命令:
df /home -h
範例輸出
admin@sonic:~$ df /home -h Filesystem Size Used Avail Use% Mounted on root-overlay 29G 5.0G 23G 18% /
- 使用 WINSCP 登入交換器。使用 SCP 作為檔案通訊協定。
- 將檔案複製到交換器內,並記下檔案路徑。在下方,檔案路徑為 /home/admin。
以下是成功複製檔案後的範例螢幕擷取畫面。SONiC 升級檔案的檔案名稱Enterprise_SONiC_OS_4.0.5_Edge_Standard.bin。
使用 SSH 和任何終端機應用程式 (例如 PuTTY) 登入交換器
注意:請務必在發出映像安裝命令前使用「write memory」命令儲存組態,而且我們有組態備份。
以下是我們使用的命令清單:
| 命令 | 說明 |
|---|---|
admin@sonic:~$ sonic-cli |
登入 Dell SONiC |
sonic# dir home:/ |
檢查 SONiC 版本檔案是否已正確複製到主目錄。 |
sonic# write memory |
儲存組態 |
sonic# image install file://<File path>/<Install File.bin> |
安裝檔案。請務必使用完整檔案路徑。例如 /home/admin/ |
sonic# show image status |
檢查映像安裝進度。 |
sonic# show image list |
顯示影像清單 |
sonic# reboot |
重新啟動交換器 |
sonic# show version |
顯示索尼克版本 |
選用命令:
| 命令 | 說明 |
|---|---|
sonic# image set-default <Image file> |
如果沒有選取適當的 SONiC 映像作為下一步,請手動設定。 |
sonic# image remove <all/image file> |
移除舊韌體以節省空間。 |
範例輸出:
- 登入 Dell SONiC。使用命令:
sonic-cli admin@sonic:~$ sonic-cli sonic#
- 使用命令檢查檔案是否已正確複製:
dir home:/ sonic# dir home:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename ------------------------------------------------------------------------- 2023-02-23 19:22 1032101870 - Enterprise_SONiC_OS_4.0.5_Edge_Standard.bin
- 儲存組態。使用命令:
write memory sonic# write memory
- 安裝 Dell SONiC。我們必須使用完整的檔案路徑,例如 /home/admin/File-name.bin。使用命令映像安裝檔案:
//<File path>/<Install File.bin> sonic# image install file://home/admin/Enterprise_SONiC_OS_4.0.5_Edge_Standard.bin %Info: Check 'show image status' for image install progress.
- 使用命令檢查映像安裝進度:
show image status sonic# show image status ----------------------------------------------------------- Global operation status : GLOBAL_STATE_SUCCESS ----------------------------------------------------------- File operation status : TRANSFER_VALIDATION File size(bytes) : 0 File transfer bytes : 0 File download speed : 0 KB/s File progress : 100% Transfer start time : 2022-09-30 17:42:22+0000 Transfer end time : 2022-09-30 17:42:22+0000 ----------------------------------------------------------- Install operation status : INSTALL_STATE_SUCCESS Install start time : N/A Install end time : N/A sonic#
- 使用以下命令確認是否選擇新版本作為下一個開機檔案:
show image list sonic# show image list Current: SONiC-OS-4.0.3-Campus Next: SONiC-OS-4.0.5-Campus Available: SONiC-OS-4.0.5-Campus SONiC-OS-4.0.3-Campus
(選擇性)如果沒有選取適當的 SONiC 映像作為下一步,請手動設定。通常不需要這樣做。
sonic# image set-default SONiC-OS-4.0.5-Campus
- 重新啟動
sonic# sonic# reboot reboot in process ..... Waiting for the reboot operation to complete
- 重新開機後,請確認 SONiC 已升級 (為簡潔起見,輸出已修整):
admin@sonic:~$ sonic-cli sonic# show version Software Version : 4.0.5-Campus Product : Enterprise SONiC Distribution by Dell Technologies
- 升級後,請確定 SONiC 檔案已從首頁刪除 (通常會自行刪除):
sonic# dir home:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename ------------------------------------------------------------------------- sonic#
(選擇性)如果 Dell SONiC 檔案未刪除,請使用以下命令刪除:
delete home://<filename> sonic# delete home://Enterprise_SONiC_OS_4.0.5_Edge_Standard.bin Proceed to delete home://Enterprise_SONiC_OS_4.0.5_Edge_Standard.bin? [y/N]:y sonic# dir home:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename -------------------------------------------------------------------------
Affected Products
Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ONArticle Properties
Article Number: 000212674
Article Type: How To
Last Modified: 11 Apr 2024
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.