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
- 必须安装适用于 python3 的 paramiko 和 scp
- 可从 Windows 系统访问交换机
- 交换机系统管理员角色用户
- 不得配置“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
- 如果运行的版本低于此版本,将创建消息“running a version less than 10.4.3.x, please upgrade to newer version”(运行的版本低于 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.