Dell Networking OS10 Python을 사용하여 Windows에서 인증서 업데이트를 실행하는 방법
Summary: Windows에서 Python을 사용하여 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 시스템에서 스위치에 연결할 수 있습니다.
- 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. Admin Open 명령이 다음 임시 디렉토리에 표시됩니다.
cd c:\Users\cert\Downloads\cert_upgrade_script-4\cert_upgrade_script-4
4. PIP가 paramiko 및 scp를 설치합니다.
pip install paramiko scp
5. readme에 따라 각 스위치 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 또는 reload 스위치를 플랩합니다.
명령 요약:
| 명령 | 설명 |
| cd c:\Users\cert\Downloads\cert_upgrade_script-4\cert_upgrade_script-4 | 압축 해제된 인증서 디렉토리로 이동합니다. |
| pip install paramiko scp | 필요한 Python 모듈을 설치합니다. |
| 파이썬 cert.py -u "admin" -p "admin" -h "<IP>" -c | 스위치가 취약한지 점검합니다. |
| 파이썬 cert.py -u "admin" -p "admin" -h "<IP>" | 스크립트를 실행하여 인증서를 변경합니다. |
| 파이썬 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.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.