Connectrix MDS:如何在 MDS NX-API 交換器上啟用 REST-API

Summary: 如何在 Connectrix MDS 交換器上設定 REST-API。 Connectrix MDS 9000 NX-API 為 RPC 樣式的 API,可用於執行 CLI 命令。它以其他具象狀態傳輸 (REST) API 框架通用的 HTTP 或 HTTPS 通訊協定為基礎,允許以程式設計的方式存取 MDS 交換器。

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

以下是在 Connectrix MDS 交換器上啟用 REST-API 的程序:
  1. 確定可透過管理介面存取交換器。請參閱 Cisco MDS 9000 系列基本配置指南此超連結會帶您前往 Dell Technologies 以外的網站。 中的配置管理介面部分,以啟用管理介面。
  2. 啟用 NX-API 功能,進入組態模式,然後啟用 NX-API:
switch# configure terminal
switch(config)# feature nxapi
  1. 設定 NX-API 的 HTTP 和 HTTPS 連接埠 (選用):
若要設定 HTTP 連接埠:
switch(config)# nxapi http port 8080
 若要設定 HTTPS 連接埠:
switch(config)# nxapi https port 8443
  1. 安裝 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
  1. 驗證 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

Additional Information

Affected Products

Connectrix MDS-Series Firmware
Article Properties
Article Number: 000224000
Article Type: How To
Last Modified: 04 Jun 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.