Dell Networking OS10 如何使用 Python 從 Windows 執行憑證更新
Summary: 如何使用 Python 從 Windows 更新 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. 從 Windows 執行指令檔的步驟
3. 命令摘要
4. 需要注意的項目
必須符合的要求
- 必須安裝 Python 3.x 和 pip3
- 必須安裝 paramiko 和適用於 python3 的 scp
- 可從 windows 系統連線交換器
- 交換器 Sysadmin 角色使用者
- 不得設定「system-cli disable」
- 若已同時安裝 python2 和 3,請務必使用 python3/pip3
從 Windows 執行指令檔的步驟
1. 下載並安裝最新的 3.x python 和 pip3
https://www.python.org/downloads/
警示: 請務必勾選「Add Python 3.9 to PATH」
2. 下載 cert.zip 並解壓縮至暫存目錄
https://www.dell.com/support/software/us/en/04
3. 使用系統管理員開啟命令提示字元,進入暫存目錄
cd c:\Users\cert\Downloads\cert_upgrade_script-4\cert_upgrade_script-4
4. PIP 安裝 paramiko & scp
pip install paramiko scp
5. 根據讀我檔案,將檔案執行至每個交換器 IP 或主機檔案。
python cert.py -u “admin” -p “admin” -h “<IP>” -c
python cert.py -u “admin” -p “admin” -h “<IP>”
python cert.py -u “admin” -p “admin” -h “<IP>” -c
6. 執行指令檔後,請檢查 LKB 文章 (Dell Networking OS10 憑證到期與解決方案),以取得接下來的步驟。
警示:請依據 KB 步驟來變動 VLTi 或重新載入交換器,以使憑證生效。
命令摘要:
| 命令 | 說明 |
| cd c:\Users\cert\Downloads\cert_upgrade_script-4\cert_upgrade_script-4 | 移至解壓縮的憑證目錄 |
| pip install paramiko scp | 安裝所需的 python 模組 |
| python cert.py -u “admin” -p “admin” -h “<IP>” -c | 檢查交換器是否容易受到攻擊。 |
| python cert.py -u “admin” -p “admin” -h “<IP>” | 執行指令檔以變更憑證 |
| python cert.py -u “admin” -p “admin” -h “<IP>” -c | 檢查交換器是否已更新 |
需要注意的項目
- 指令檔會檢查是否以低於 10.4.3.x 的版本執行
- 如果執行版本低於此版本,將會產生訊息「執行的版本低於 10.4.3.x,請升級至較新的版本」
- 指令檔會檢查版本是否高於 10.5.1.0。(在指令檔版本 v4 中)
- 如果叢集中的其他交換器也執行 10.5.1.0 或更新版本,則系統便不會易於受到攻擊
- 較新的韌體可能具有受影響的憑證,但是它並未在使用中,因此可以忽略或升級,而不必擔心
- 如果 windows 的使用者名稱或密碼有特殊字元,請務必使用「“」(雙引號)。
Affected Products
PowerSwitch S3048-ON, PowerSwitch S4048-ON, Dell EMC Networking MX5108n, Dell EMC Networking MX9116n, Dell EMC Networking N3200-ON, PowerSwitch S4048T-ON, PowerSwitch S4148U-ON, PowerSwitch S5148F-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ONProducts
PowerSwitch S4112F-ON/S4112T-ON, PowerSwitch S4128F-ON/S4128T-ON, PowerSwitch S4148F-ON/S4148T-ON/S4148FE-ON, PowerSwitch S4248FB-ON /S4248FBL-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, PowerSwitch Z9432F-ON
...
Article Properties
Article Number: 000188441
Article Type: How To
Last Modified: 21 Jun 2021
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.