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

Resumen: 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. ...

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

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

Información adicional

Productos afectados

Connectrix MDS-Series Firmware
Propiedades 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.