Connectrix Cisco MDS:Rest API 無法運作,curl 命令傳回「找不到 HTTP 404」,網頁瀏覽器傳回「找不到 HTTP 404」
Summary: 若為 Cisco Nexus 裝置上的 NX-API,命令行介面 (CLI) 只會在裝置上執行。NX-API 通過使用 HTTP 或 HTTPS 使其可在交換機外部使用,從而提高了這些 CLI 的可訪問性。您可以將此延伸模組用於 Cisco Nexus 9000 系列裝置上現有的 Cisco Nexus CLI 系統。NX-API 支援 show 命令、組態和 Linux Bash。可透過網頁瀏覽器存取 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 功能後,使用者無法使用網頁瀏覽器存取 NXAPI。
收到以下錯誤:
Web 瀏覽器返回 HTTP 404 未找到。
收到以下錯誤:
Web 瀏覽器返回 HTTP 404 未找到。
Cause
啟用 NX-API 功能後,必須啟用名為 SANDBOX 的次要功能。如需正確的語法,請參閱「解決方案」一節。
Resolution
- 停用 NX-API 並重新啟動。
MDS-9706# 組態
- 輸入組態命令,每行一個。以 CNTL/Z 結尾。
MDS-9706 (config)# 無功能 nxapi
- 使用下列參數再次啟用 NX-API:
MDS-9706 (config)# 功能 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
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 HardwareArticle 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.