Connectrix MDS: Sådan aktiveres REST-API på en MDS NX-API-switch

Summary: Sådan konfigureres REST-API på Connectrix MDS-switch. Connectrix MDS 9000 NX-API er en RPC-lignende API til at tage og køre CLI-kommandoer. Baseret på HTTP- eller HTTPS-protokoller, der er fælles for andre REST-API-strukturer (Representational State Transfer), giver den programmeringsmæssig adgang til en MDS-switch. ...

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

Følgende procedure er for aktivering af REST-API på en Connectrix MDS-switch:
  1. Sørg for, at switchen er tilgængelig via administrationsgrænsefladen. Se afsnittet Konfiguration af administrationsgrænsefladen i konfigurationsvejledningen til Cisco MDS 9000-serien for at aktivere administrationsgrænsefladen.Dette hyperlink fører dig til et websted uden for Dell Technologies.
  2. Aktivér NX-API-funktionen, skift til konfigurationstilstand, og aktivér NX-API:
switch# configure terminal
switch(config)# feature nxapi
  1. Konfigurer HTTP- og HTTPS-porte til NX-API (valgfrit):
Sådan konfigureres HTTP-porten:
switch(config)# nxapi http port 8080
 Sådan konfigureres HTTPS-porten:
switch(config)# nxapi https port 8443
  1. Installer et identitetscertifikat til NX-API HTTPS-forbindelser (valgfrit): 
Installer et certifikat med en ukrypteret privat nøgle:
switch(config)# nxapi certificate certfile key keyfile

Installer et certifikat med en krypteret privat nøgle:

switch(config)# nxapi certificate certfile key keyfile password passphrase

Brug et allerede installeret certifikat fra trustpoint Repository:

switch(config)# nxapi trustpoint label
  1. Bekræft NX-API-indstillinger:

switch# show nxapi
switch# show feature


Sådan deaktiverer du NX-API: 

Switch# conf t 
switch(config)# no feature nxapi

Der kan opnås adgang til NX-API via følgende URL-adresser, når den er konfigureret på MDS-switchen:

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.