Connectrix MDS:如何在 MDS NX-API 交換器上啟用 REST-API
Resumen: 如何在 Connectrix MDS 交換器上設定 REST-API。 Connectrix MDS 9000 NX-API 為 RPC 樣式的 API,可用於執行 CLI 命令。它以其他具象狀態傳輸 (REST) API 框架通用的 HTTP 或 HTTPS 通訊協定為基礎,允許以程式設計的方式存取 MDS 交換器。
Este artículo se aplica a
Este artículo no se aplica a
Este artículo no está vinculado a ningún producto específico.
No se identifican todas las versiones del producto en este artículo.
Instrucciones
以下是在 Connectrix MDS 交換器上啟用 REST-API 的程序:
- 確定可透過管理介面存取交換器。請參閱 Cisco MDS 9000 系列基本配置指南
中的配置管理介面部分,以啟用管理介面。
- 啟用 NX-API 功能,進入組態模式,然後啟用 NX-API:
switch# configure terminal switch(config)# feature nxapi
- 設定 NX-API 的 HTTP 和 HTTPS 連接埠 (選用):
若要設定 HTTP 連接埠:
switch(config)# nxapi http port 8080
若要設定 HTTPS 連接埠:
switch(config)# nxapi https port 8443
- 安裝 NX-API HTTPS 連線的身分識別憑證 (選用):
使用未加密的私密金鑰安裝憑證:
switch(config)# nxapi certificate certfile key keyfile
使用加密的私密金鑰安裝憑證:
switch(config)# nxapi certificate certfile key keyfile password passphrase
使用已從 trustpoint 儲存庫:
switch(config)# nxapi trustpoint label
-
驗證 NX-API 設定:
switch# show nxapi switch# show feature
若要停用 NX-API:
Switch# conf t switch(config)# no feature nxapi
在 MDS 交換器上設定 NX-API 後,即可透過下列 URL 存取:
HTTP: http://switch_ip_address:port-number/ins HTTPs: https://switch_ip_address:port-number/ins
Información adicional
Productos afectados
Connectrix MDS-Series FirmwarePropiedades del artículo
Número del artículo: 000224000
Tipo de artículo: How To
Última modificación: 04 jun 2025
Versión: 3
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.