Connectrix Cisco MDS 系列:如何編輯 SCG 指令檔以啟用密碼編碼

Summary: SCG, Base64 編碼, Cisco, ESRS 指令檔, 密碼 Base64 編碼

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

這是透過 Cisco 專用的 SolveOnline 產生的「SCG Callhome 設定」步驟的一部分,透過 LINUX 機器編輯指令檔以啟用密碼編碼 (Base64)。

下面是針對該過程的任務 3 和 4 解釋的範例。

重要:在編輯腳本之前,您需要生成一個存取代碼和 PIN,它將用作腳本中的使用者名和密碼。  您需要針對每個要設定

的交換器執行此程序請參閱下列文章,瞭解產生存取代碼和 PIN 的步驟 (Brocade 和 Cisco 交換器的程序相同):
https://www.dell.com/support/kbdoc/en-us/000345325

工作 3:透過 LINUX 機器編輯指令檔,以啟用密碼編碼 (Base64)。


3.複製 ch_script_<NX-OS Version>.tar 檔案與 esrs_auth.sh 從 DELL 支援網站下載到 Linux 伺服器的檔案。

             範例:

  • 從 Windows 主機複製到 Linux 伺服器可以使用 WINSCP 執行。

Linux 根目錄中的結果:

[root@host ~]# ls
anaconda-ks.cfg        Desktop    Downloads     index.html            Music     Public     Videos
ch_script_v8_4_2b.tar  Documents  esrs_auth.sh  initial-setup-ks.cfg  Pictures  Templates
[root@host ~]#

 

4. 和 5.請確定您位於與複製 ch_script.tar esrs_auth.sh files.

執行 esrs_auth.sh 使用命令的 bash 檔案 “bash esrs_auth.sh”.


範例並透過 CLI 提供要求的資訊 (注意:使用者名稱將是存取代碼,密碼將是開始時產生的 PIN):
[root@host ~]#
[root@host ~]# bash esrs_auth.sh
Enter script file name: ch_script_v8_4_2b.tar
Enter username for add/del of device to ESRS backend: ABCA9F6D
Enter password for add/del of device to ESRS backend: ****
Enter esrsv-primary-ipaddress of the product: 10.xx.yy.zz
Enter serial number of the product: XXX12345-CLI
Enter ip-address of the product: 1.2.3.4
Enter esrs model of the product: CONNECTRIX-GW
product-connectivity-add.sh updated...
Product ESRSV Primary address updated...
Product serial number updated...
Product IP Address updated...
Product esrs model updated...
[root@host ~]#
6.在提供所需的值後,.tar 檔案會更新並完成密碼編碼,基於方便起見,請重新命名檔案
範例:
[root@host ~]# mv ch_script_v8_4_2b.tar ch_script_v8_4_2b_edit.tar
[root@host ~]#


透過 Winscp 將修改後的指令檔從 Linux 主機複製到 ftp 伺服器。
複製修改後的指令檔 ch_script_<NX-OS version>.tar 檔案,從 Linux 伺服器傳送至交換器 bootflash:scripts 目錄。
(如果是董事,請將.tar檔案複製到活動和待命主管 (bootflash://sup-active/scripts and bootflash://sup-standby/scripts))

      交換器範例。

MDS-9250i#
MDS-9250i# copy ftp://anonymous@aa.bb.cc.dd/cisco/ch_script_v8_4_2b_edit.tar bootflash:scripts/ch_script_v8_4_2b_edit.tar

Password:
Copy complete, now saving to disk (please wait)...
MDS-9250i#
MDS-9250i# dir bootflash:scripts/
     112640    Feb 18 12:53:05 2021  ch_script_v8_4_2b_edit.tar

Usage for bootflash://sup-local
  869765120 bytes used
 2489880576 bytes free
 3359645696 bytes total
MDS-9250i#

工作 4:在 MDS 交換器上啟用 ESRS ConnectHome。

7. 在 MDS 交換器上啟用 ESRS ConnectHome

執行下列命令:

      範例:

MDS-9250i#
MDS-9250i# config
MDS-9250i(config)#
MDS-9250i(config)# callhome
MDS-9250i(config-callhome)#
MDS-9250i(config-callhome)# alert-group all script-name ch_script_v8_4_2b_edit.tar
MDS-9250i(config-callhome)#

注意:執行上述命令後,請確定已透過 REST 將裝置新增至 SRS 閘道。
登入在客戶地點安裝的 ESRS 閘道的 WebUI,然後前往警示頁面。
成功添加的設備將輸入狀態為 201 的警報。

如果狀態為 401,則會出現驗證錯誤,且裝置不會新增至閘道。
(401 表示驗證錯誤「REST 要求中缺少受管理產品序號欄位」或「REST 要求中缺少裝置型號」。


注意若您將任一警示群組對應至指令檔名稱,則依預設,「所有」警示群組都會對應至指令檔。
默認情況下,您可以啟用“全部”警報組。
如果您是首次設定交換器,請確定在交換器上啟用 callhome 和 cfs 分配。

使用以下命令啟用 callhome 和 cfs 發佈:

範例:
MDS-9250i# config
Enter configuration commands, one per line.  End with CNTL/Z.
MDS-9250i(config)#
MDS-9250i(config)# callhome
MDS-9250i(config-callhome)#
MDS-9250i(config-callhome)# enable
MDS-9250i(config-callhome)#
MDS-9250i(config-callhome)# distribute
MDS-9250i(config-callhome)#
MDS-9250i(config-callhome)# commit
MDS-9250i(config-callhome)#
MDS-9250i#
MDS-9250i# show callhome status
Distribution : Enabled
MDS-9250i#
MDS-9250i#
MDS-9250i# show cfs application name callhome

 Enabled        : Yes
 Timeout        : 20
 Merge Capable  : Yes
 Scope          : Physical-fc-ip
 Region         : Default
MDS-9250i#


繼續執行 SCG Callhome 設定步驟

的程序。注意:產生的檔案確實包含敏感資訊,應該在複製到交換器後從 Windows/Linux 主機刪除。

 

Affected Products

Connectrix MDS-Series

Products

Connectrix MDS-Series Hardware, Connectrix MDS-Series Software
Article Properties
Article Number: 000183204
Article Type: How To
Last Modified: 08 Sept 2025
Version:  11
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.