Dell Networking:如何驗證為 Dell Networking 交換器下載的 OS10 韌體映像的檢查總和

Summary: 本文說明如何驗證下載到 DELL Networking OS10 交換器中的韌體映像總和檢查碼。

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

目錄

  1. 為什麼需要總和檢查碼。
  2. 哪裡可以找到 sha256 檢查總和檔案
  3. 在交換器中的何處可找到下載的「映像檔」
  4. 計算所下載檔案的總和檢查碼

為什麼需要檢查總和

檔案可能會在傳輸過程中損毀。我們可以使用校驗和來檢查文件的數據完整性。檢查總和是使用 md5、SHS224、SHA256 等檢查總和演算法從檔案產生的數字。OS10 套件包含 SHA256 檢查總和檔案,可用來檢查下載至交換器的檔案資料完整性。

哪裡可以找到 SHA256 檢查總和檔案

每個韌體版本的檢查總和都不同。在安裝套件中籤入檢查總和檔案。

檢查總和檔案包含在安裝套件中。解壓縮下載時可以看到這一點。此檔案為 SHA256 類型。

下面突出顯示了一個示例。
檢查總和檔案類型的螢幕擷取畫面

在記事本或任何其他類似的公用程式中打開檔。有一個 64 個字元的字串。此 64 個字元的字串必須與下載到映像的圖像的哈希輸出匹配。

範例輸出
以下是在記事本中打開的SHA256檔。
在記事本中開啟的檢查總和檔案螢幕擷取畫面

這裡的校驗和值是「d69dd152db027cb81b80be5a1f4b6e5c63e2d187d5c0e9f73e2d6d1a3b9c6d57」。這必須與下載檔案計算的總和檢查碼值相符。

在交換器中的何處可找到下載的「映像檔」

在進行 OS10 韌體升級時,我們使用命令「映像下載」將軟體映像從 TFTP、FTP、SCP、HTTP 或 USB 下載至交換器。此檔案會下載至 /var/os10-image 資料夾。

我們可以使用命令「dir image」檢視下載到交換器的檔案

範例輸出

Switch# dir image
Directory contents for folder: image
Date (modified)        Size (bytes)  Name
---------------------  ------------  ------------------------------------------
2020-12-18T12:54:51Z   477981208     PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin

計算所下載檔案的總和檢查碼

我們可以通過下面提到的任何一種方法計算下載檔的SHA256校驗和。

方法 1:在 OS10 CLI 中使用命令「映像驗證」命令 [OS 10.5 及更新版本]

命令語法

命令 說明
Switch# image verify image://<image name> sha256 計算檔案的 sha256 檢查總和的命令。

範例輸出

Switch# image verify image://PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin sha256
Hash of image: d69dd152db027cb81b80be5a1f4b6e5c63e2d187d5c0e9f73e2d6d1a3b9c6d57

方法 2:在 OS10 CLI 中使用 SHA256sum 命令

命令語法

使用標籤不會自動填入「系統」命令。

命令 說明
Switch# system “ls /var/os10-image/” 確認下載的檔案是否位於資料夾 /var/os10-image/ 中
Switch# system "sha256sum /var/os10-image/<image file name>" 計算檔案的 sha256 檢查總和的命令。

範例輸出

Switch# system “ls /var/os10-image/”
PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin    ========>Verify file name

Switch# system "sha256sum /var/os10-image/</PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin"
d69dd152db027cb81b80be5a1f4b6e5c63e2d187d5c0e9f73e2d6d1a3b9c6d57  /var/os10-image/PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin ========>Verify the checksum with the checksum in file

方法 3:在 shell 中使用 sha256sum 命令

命令語法

命令 說明
Switch# system bash 登入殼層,我們必須提供管理員密碼。
admin@Switch:~$ ls /var/os10-image/ 確認下載的檔案是否位於資料夾 /var/os10-image/ 中
admin@Switch/var/os10-image$ sha256sum /var/os10-image/<image file name> 計算檔案的 sha256 檢查總和的命令。
admin@Switch/var/os10-image$ exit 退出

範例輸出

Switch# system bash               ============>Provide admin password when prompted
admin@Switch:~$ ls /var/os10-image/
PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin ========>Verify file name

admin@Switch:~$ sha256sum /var/os10-image/PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin
d69dd152db027cb81b80be5a1f4b6e5c63e2d187d5c0e9f73e2d6d1a3b9c6d57  /var/os10-image/PKGS_OS10-Enterprise-10.5.0.7.745stretch-installer-x86_64.bin ========>Verify the checksum with the checksum in file

 

Affected Products

S Series, PowerSwitch S3048-ON, PowerSwitch S4048-ON, PowerSwitch S4810P, PowerSwitch S4810-ON, PowerSwitch S4820T, PowerSwitch S5000, PowerSwitch S6000 ON, Dell EMC Networking MX7116n, Dell EMC Networking MX9116n, Dell EMC Networking N3200-ON , PowerSwitch S4048T-ON, PowerSwitch S4112F-ON/S4112T-ON, PowerSwitch S4128F-ON/S4128T-ON, PowerSwitch S4148F-ON/S4148T-ON/S4148FE-ON, PowerSwitch S4148U-ON, PowerSwitch S4248FB-ON /S4248FBL-ON, PowerSwitch S5048F-ON, PowerSwitch S5148F-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch S6010-ON, PowerSwitch S6100-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON ...

Products

PowerSwitch S4128F-ON/S4128T-ON, PowerSwitch S4148F-ON/S4148T-ON/S4148FE-ON, PowerSwitch S4148U-ON, PowerSwitch S4248FB-ON /S4248FBL-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON , PowerSwitch S5448F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ON ...
Article Properties
Article Number: 000181434
Article Type: How To
Last Modified: 17 Jul 2025
Version:  11
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.