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用parammu & scpがインストールされている
  • スイッチはWindowsシステムからアクセス可能
  • スイッチのSysadminロール ユーザー
  • 「system-cli disable」が設定されていない
  • python2と3が両方インストールされている場合は、python3/pip3を使用
 

Windowsからスクリプトを実行する手順


1.  最新の3.x pythonおよびpip3をダウンロードしてインストールします。

https://www.python.org/downloads/ image.png

image.png

image.png

:  [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 install 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証明書の有効期限切れおよび解決策」)を確認します。

アラート:VLTiをフラップするか、KBステップに基づいてスイッチをリロードして、証明書を有効にします。
 

コマンドの概要

 
コマンド 説明
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 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-ON

Products

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.