簡介
本文檔介紹如何透過Web UI管理Catalyst 9000交換機。
必要條件
需求
本文件沒有特定需求。
採用元件
本文中的資訊係根據以下軟體和硬體版本:
- Catalyst 9200
- Catalyst 9300
- Catalyst 9400
- Catalyst 9500
- Catalyst 9600
- Cisco IOS® XE 17.9.1及更高版本
注意:有關用於在其他Cisco平台上啟用這些功能的命令,請參閱相應的配置指南。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
背景資訊
Web使用者介面(Web UI)是一種基於GUI的嵌入式工具,可提供裝置管理功能,從而增強使用者體驗。您可以使用Web UI構建配置、監控和排除裝置故障,而無需具備CLI專業知識。
注意:每個IOS XE版本的發行版本註釋中均列出了Web UI訪問的硬體系統要求。
設定
Web UI訪問
要訪問Web UI,需要以下配置:
- HTTP(S)伺服器已啟用(預設情況下已啟用)並使用本地身份驗證。
- 可從本地PC訪問的第3層介面。
- 本機使用者帳戶。
使用show running-config | section http命令驗證是否啟用了HTTP(S)伺服器。此命令顯示HTTP伺服器已啟用,並且使用本地憑據進行身份驗證:
Cat9k#show running-config | section http
ip http server <--- HTTP server enabled
ip http authentication local <--- Use local credentials for authentication
ip http secure-server <--- HTTPS server enabled
destination transport-method http
此外,show ip http server status命令可用於驗證HTTP(S)伺服器是否已啟用。
Cat9k#show ip http server status | include server status
HTTP server status: Enabled
HTTP secure server status: Enabled
驗證從本地PC是否可以訪問交換機上的第3層介面。第3層介面可以是管理介面或交換機虛擬介面(SVI)。使用以下命令:
Cat9k#show running-config interface vlan 10
Building configuration...
Current configuration : 94 bytes
!
interface Vlan10
description MGMT
ip address 10.1.1.1 255.255.255.0 <--- IP address configured in the SVI VLAN 10
no ip redirects
end
Cat9k#show ip interface brief | exclude unassigned
Interface IP-Address OK? Method Status Protocol
Vlan10 10.1.1.1 YES manual up up <--- SVI VLAN 10 is UP/UP
Cat9k#ping 10.1.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms <--- Ping from the switch to the local PC is successful
驗證是否配置了許可權級別為15的本地使用者帳戶。當使用許可權層級1-14,或未明確設定許可權15時,Web UI僅供監督之用。許可權等級15會授與Web UI組態和管理工具的完整存取權。
Cat9k#show running-config | include username
username cisco privilege 15 secret 9 $9$0hzcXmr/bfxxaU$XdMzC1B45nCyLJ.9Li3q94JHh9uDWEq9urVf4YUKfnQ <--- User cisco with privilege level 15
升級
安裝模式
Web UI軟體管理工具允許您使用位於本地PC中的軟體映像檔案升級交換機。使用此方法時,映像檔案透過HTTP複製到交換機,因此無需從FTP/TFTP/SCP伺服器或USB快閃記憶體驅動器複製映像。
注意:IOS XE 17.9.1及更高版本支援使用Web UI升級。舊版軟體不支援透過Web UI升級或降級。
- 訪問受支援的網際網路瀏覽器,鍵入交換機上配置的第3層介面的IP地址。
- 使用交換機上配置的本地憑證登入。
- 瀏覽
Administration > Software Management 並選取頁 Software Upgrade 面。
軟體管理視窗
- 在
Manage下,按一下Remove Inactive Files 清除未使用的安裝檔案(.bin、.pkg、.conf)。系統會顯示一個彈出窗口,要求確認,然後選擇Yes。此操作啟動後,將顯示狀態面板,您可以點選Show Logs 以顯示此操作的進度。完成此操作後,請確保快閃記憶體中至少有1GB的空間。刪除非活動檔案操作
- 從
Upgrade Mode 下拉選單中選擇INSTALL 。
- 選中
One-Shot Install Upgrade 覈取方塊,以便交換機在啟用後重新載入,從而使用新軟體啟動交換機。
- 從
Transport Type 下拉選單中,選擇 My Desktop 從本地PC上傳二進位制軟體映像檔案(.bin檔案)。如果.bin檔案已經位於交換機的快閃記憶體中,您可以選擇Device並選擇一個檔案。
- 從
File System下拉清單中選擇bootflash。
- 在
Source File Path 下,按一下Select File 並瀏覽到本地PC上的二進位制軟體映像。
- 點選
Download & Install開始升級過程。螢幕上會顯示一個彈出窗口,要求確認,選擇 Yes。確認後,映像會下載到交換機,安裝並啟用,然後交換機重新載入以提交新軟體。 此操作啟動後,將顯示狀態面板,您可以按一下Show Logs顯示此操作的進度。
注意:交換機重新載入時,會話可能會超時。如果是,請重新載入瀏覽器視窗並登入。
正在進行軟體升級
移除非使用中檔案記錄
以下是Remove Inactive Files操作期間顯示的日誌示例:
Initiating install_remove_inactive to remove inactive files install_remove: START Wed Jan 31 17:49:42 UTC 2024 Cleaning up unnecessary package files No path specified, will use booted path bootflash:packages.conf Cleaning bootflash: Scanning boot directory for packages ... done. Preparing packages list to delete ... cat9k-cc_srdriver.17.09.01.SPA.pkg File is in use, will not delete. cat9k-espbase.17.09.01.SPA.pkg File is in use, will not delete. cat9k-guestshell.17.09.01.SPA.pkg File is in use, will not delete. cat9k-lni.17.09.01.SPA.pkg File is in use, will not delete. cat9k-rpbase.17.09.01.SPA.pkg File is in use, will not delete. cat9k-rpboot.17.09.01.SPA.pkg File is in use, will not delete. cat9k-sipbase.17.09.01.SPA.pkg File is in use, will not delete. cat9k-sipspa.17.09.01.SPA.pkg File is in use, will not delete. cat9k-srdriver.17.09.01.SPA.pkg File is in use, will not delete. cat9k-webui.17.09.01.SPA.pkg File is in use, will not delete. cat9k-wlc.17.09.01.SPA.pkg File is in use, will not delete. packages.conf File is in use, will not delete. done. The following files will be deleted: [R0]: /bootflash/cat9k-cc_srdriver.17.09.04a.SPA.pkg /bootflash/cat9k-espbase.17.09.04a.SPA.pkg /bootflash/cat9k-guestshell.17.09.04a.SPA.pkg /bootflash/cat9k-lni.17.09.04a.SPA.pkg /bootflash/cat9k-rpbase.17.09.04a.SPA.pkg /bootflash/cat9k-rpboot.17.09.04a.SPA.pkg /bootflash/cat9k-sipbase.17.09.04a.SPA.pkg /bootflash/cat9k-sipspa.17.09.04a.SPA.pkg /bootflash/cat9k-srdriver.17.09.04a.SPA.pkg /bootflash/cat9k-webui.17.09.04a.SPA.pkg /bootflash/cat9k-wlc.17.09.04a.SPA.pkg /bootflash/cat9k_iosxe.17.09.01.SPA.bin /bootflash/cat9k_iosxe.17.09.01.SPA.conf /bootflash/cat9k_iosxe.17.09.04a.CSCwf83348.SPA.smu.bin /bootflash/cat9k_iosxe.17.09.04a.CSCwh82668.SPA.smu.bin /bootflash/cat9k_iosxe.17.09.04a.SPA.bin /bootflash/cat9k_iosxe.17.09.04a.SPA.conf [R0]: Deleting file bootflash:cat9k-cc_srdriver.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-espbase.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-guestshell.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-lni.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-rpbase.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-rpboot.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-sipbase.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-sipspa.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-srdriver.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-webui.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k-wlc.17.09.04a.SPA.pkg ... done. Deleting file bootflash:cat9k_iosxe.17.09.01.SPA.bin ... done. Deleting file bootflash:cat9k_iosxe.17.09.01.SPA.conf ... done. Deleting file bootflash:cat9k_iosxe.17.09.04a.CSCwf83348.SPA.smu.bin ... done. Deleting file bootflash:cat9k_iosxe.17.09.04a.CSCwh82668.SPA.smu.bin ... done. Deleting file bootflash:cat9k_iosxe.17.09.04a.SPA.bin ... done. Deleting file bootflash:cat9k_iosxe.17.09.04a.SPA.conf ... done. SUCCESS: Files deleted. --- Starting Post_Remove_Cleanup --- Performing Post_Remove_Cleanup on Active/Standby [1] Post_Remove_Cleanup package(s) on R0 [1] Finished Post_Remove_Cleanup on R0 Checking status of Post_Remove_Cleanup on [R0] Post_Remove_Cleanup: Passed on [R0] Finished Post_Remove_Cleanup SUCCESS: install_remove Wed Jan 31 17:52:28 UTC 2024
安裝記錄
以下是成功升級期間顯示的日誌範例:
install_add_activate_commit: START Wed Jan 31 18:02:27 UTC 2024 install_add_activate_commit: Adding PACKAGE install_add_activate_commit: Checking whether new add is allowed .... --- Starting Add --- Performing Add on Active/Standby [1] Add package(s) on R0 [1] Finished Add on R0 Checking status of Add on [R0] Add: Passed on [R0] Finished Add Image added. Version: 17.09.04a.0.6 install_add_activate_commit: Activating PACKAGE Following packages shall be activated: /bootflash/cat9k-wlc.17.09.04a.SPA.pkg /bootflash/cat9k-webui.17.09.04a.SPA.pkg /bootflash/cat9k-srdriver.17.09.04a.SPA.pkg /bootflash/cat9k-sipspa.17.09.04a.SPA.pkg /bootflash/cat9k-sipbase.17.09.04a.SPA.pkg /bootflash/cat9k-rpboot.17.09.04a.SPA.pkg /bootflash/cat9k-rpbase.17.09.04a.SPA.pkg /bootflash/cat9k-lni.17.09.04a.SPA.pkg /bootflash/cat9k-guestshell.17.09.04a.SPA.pkg /bootflash/cat9k-espbase.17.09.04a.SPA.pkg /bootflash/cat9k-cc_srdriver.17.09.04a.SPA.pkg --- Starting Activate --- Performing Activate on Active/Standby [1] Activate package(s) on R0 --- Starting list of software package changes --- Old files list: Modified cat9k-cc_srdriver.17.09.01.SPA.pkg Modified cat9k-espbase.17.09.01.SPA.pkg Modified cat9k-guestshell.17.09.01.SPA.pkg Modified cat9k-lni.17.09.01.SPA.pkg Modified cat9k-rpbase.17.09.01.SPA.pkg Modified cat9k-rpboot.17.09.01.SPA.pkg Modified cat9k-sipbase.17.09.01.SPA.pkg Modified cat9k-sipspa.17.09.01.SPA.pkg Modified cat9k-srdriver.17.09.01.SPA.pkg Modified cat9k-webui.17.09.01.SPA.pkg Modified cat9k-wlc.17.09.01.SPA.pkg New files list: Added cat9k-cc_srdriver.17.09.04a.SPA.pkg Added cat9k-espbase.17.09.04a.SPA.pkg Added cat9k-guestshell.17.09.04a.SPA.pkg Added cat9k-lni.17.09.04a.SPA.pkg Added cat9k-rpbase.17.09.04a.SPA.pkg Added cat9k-rpboot.17.09.04a.SPA.pkg Added cat9k-sipbase.17.09.04a.SPA.pkg Added cat9k-sipspa.17.09.04a.SPA.pkg Added cat9k-srdriver.17.09.04a.SPA.pkg Added cat9k-webui.17.09.04a.SPA.pkg Added cat9k-wlc.17.09.04a.SPA.pkg Finished list of software package changes [1] Finished Activate on R0 Checking status of Activate on [R0] Activate: Passed on [R0] Finished Activate --- Starting Commit --- Performing Commit on Active/Standby [1] Commit package(s) on R0 [1] Finished Commit on R0 Checking status of Commit on [R0] Commit: Passed on [R0] Finished Commit Send model notification for install_add_activate_commit before reload Install will reload the system now! SUCCESS: install_add_activate_commit Wed Jan 31 18:09:14 UTC 2024 Requesting RP pvp reload
管理檔案
複製自/至交換器
Web UI File Manager工具可讓您將檔案從交換器複製到本機PC,反之亦然,而不需要使用外部FTP/TFTP/SCP伺服器。在排除故障且需要從交換機中提取檔案(如二進位制跟蹤檔案、資料包捕獲、崩潰檔案和系統報告)時,此功能非常有用。
- 訪問受支援的網際網路瀏覽器,鍵入交換機上配置的第3層介面的IP地址。
- 使用交換機上配置的本地憑證登入。
- 透過
Administration > Management > File Manager導航。
- 選取
bootflash:,這是檔案複製到/從的目錄。檔案管理員視窗
- 要下載檔案,請按一下右鍵該檔案並選擇
Download。使用File Manager下載檔案
- 要上傳檔案,請點選
Upload,然後選擇要上傳的檔案。檔案會上傳到選取的目錄。 螢幕頂部的進度列顯示上載的進度。
相關資訊
思科錯誤ID