Connectrix Cisco MDS:Rest API 无法正常工作,curl 命令返回 HTTP 404 Not Found,网页浏览器返回 HTTP 404 Not Found

Summary: 对于 Cisco Nexus 设备上的 NX-API,命令行界面 (CLI) 仅在设备上运行。NX-API 通过使用 HTTP 或 HTTPS 使这些 CLI 在交换机外部可用,从而改进了这些 CLI 的可访问性。您可以将此扩展用于 Cisco Nexus 9000 系列设备上的现有 Cisco Nexus CLI 系统。NX-API 支持 show 命令、配置和 Linux Bash。通过 Web 浏览器访问 Connectrix Cisco MDS 上的 NX-API 功能。 ...

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.

Symptoms

在 MDS 交换机上启用 NX-API 功能后,用户无法使用 Web 浏览器访问 NXAPI。

收到以下错误:
Web 浏览器返回 HTTP 404 Not Found。

Cause

启用 NX-API 功能后,必须启用名为 SANDBOX 的辅助功能。有关正确的语法,请参阅解决方案部分。

Resolution

  1. 禁用 NX-API 并重新启动。
MDS-9706# conf t
  1. 输入配置命令,每行一个。以 CNTL/Z 结尾。
MDS-9706(config)# no feature nxapi
  1. 使用以下参数再次启用 NX-API:
MDS-9706(config)# feature nxapi

MDS-9706(config)# nxapi sandbox

MDS-9706(config)# nxapi http port 8080

MDS-9706(config)# nxapi https port 8443

MDS-9706(config)# show nxapi




NX-API:启用的沙盒:已启用

HTTP 端口:8080 HTTPS 端口:8443

Affected Products

Connectrix MDS-Series Hardware
Article Properties
Article Number: 000190899
Article Type: Solution
Last Modified: 23 Sept 2021
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.