本文提供如何將網路分析模組(NAM)軟體升級為版本3.x的逐步程式。
嘗試此組態之前,請確保符合以下要求:
熟悉檔案傳輸通訊協定(FTP)
通過命令列熟悉Catalyst交換機管理
本文中的資訊係根據以下軟體和硬體版本:
X6380(原始NAM)
NAM 3.0版軟體
NAM-1和NAM-2硬體裝置
執行CatOS 7.3.1的Catalyst 6505
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
本節提供將NAM軟體升級到版本3.x的資訊。
完成以下步驟即可升級軟體:
下載檔案:
原始NAM — 請參閱適用於Cat 6500的Software Download-NAM(Prod.代碼:WS-X6380-NAM)(僅限註冊客戶)並獲取c6nam.3-1-1.bin.gz文件。
NAM1/NAM2 — 請參閱適用於Cat 6500的Software Download-NAM(Prod.代碼:WS-SVC-NAMx)(僅限註冊客戶)並獲取c6svc-nam.3-1-1.bin.gz文件。
將該檔案放在要使用的FTP伺服器上帳戶的根目錄中。
註:此圖示使用WS-X6380-NAM,但它同時適用於WS-SVC-NAM-1和WS-SVC-NAM-2。
此範例使用以下資訊:
FTP伺服器為:
名稱:rtp-sycamore.cisco.com
地址:172.18.123.68
帳戶ID無效。
帳戶密碼已加密。
案例的根目錄為:~ rtp-sycamore cse %4> pwd /local/home/cse。
檔案列在此處,因此它是:/local/home/cse/c6nam.3-1-1.bin.gz。
~ rtp-sycamore cse %4>ls -al c6nam.3-1-1.bin.gz -rw-r—r— 1其他756712445月28日11:17 c6nam.3-1-1.bin.gz
若要確認FTP伺服器是否正常運作,請進行測試以確認是否可從其他工作站存取此FTP伺服器:
註:此處使用rtp-cse-205作為示例。
rtp-cse-205_oansari-> ftp rtp-sycamore Connected to rtp-sycamore.cisco.com. 220 rtp-sycamore FTP server (SunOS 5.7) ready. Name (rtp-sycamore:oansari): cse 331 Password required for cse. Password: csecse 230 User cse logged in. Remote system type is UNIX. Using binary mode to transfer files.
存取FTP伺服器時,請確保檔案可用:
ftp> ls c6nam.3-1-1.bin.gz 227 Entering Passive Mode (172,18,123,68,222,205) 150 ASCII data connection for /bin/ls (64.102.51.64,35372) (0 bytes). -rw-r--r-- 1 cse other 75671244 May 28 11:17 c6nam.3-1-1.bin.gz 226 ASCII Transfer complete.
當您驗證檔案存在且可用時,您就可以更加確信檔案傳輸到NAM會成功。這可確認FTP服務正在運行,且有必要的檔案可供下載到FTP使用者端。
開始升級NAM的步驟。範例如下:
檢查模組:
nms-6506a> (enable) sh mod ... Mod Slot Ports Module-Type Model Sub Status --- ---- ----- ------------------------- ------------------- --- -------- 1 1 2 1000BaseX Supervisor WS-X6K-SUP1A-2GE yes ok 15 1 1 Multilayer Switch Feature WS-F6K-MSFC no ok 2 2 0 FlexWAN Module WS-X6182-2PA no power-down 4 4 2 Network Analysis Module WS-X6380-NAM no ok 5 5 8 1000BaseX Ethernet WS-X6408-GBIC no ok 6 6 48 10/100BaseTX Ethernet WS-X6348-RJ-45 yes ok
輸出顯示,相關的NAM位於插槽4中,狀態為ok。
檢查CatOS交換器的版本:
nms-6506a> (enable) sh ver WS-C6506 Software, Version NmpSW: 7.3(1)
注意:版本必須是7.3(1)或更高版本。如果您的交換機沒有此版本,請不要繼續升級NAM。首先升級交換機軟體。
如果指定的版本是7.3(1)或更高版本,則重置NAM:
nms-6506a> (enable) reset 4 hdd:2 This command will reset module 4. Unsaved configuration on module 4 will be lost Do you want to continue (y/n) [n]? y Module 4 shut down in progress, do not remove module until shutdown completed. nms-6506a> (enable)
注意:對於NAM1/NAM2,您必須使用以下命令:reset <module> cf:1。
您會在終端上看到以下輸出:
2003 May 28 11:28:36 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "unknown(1)" 2003 May 28 11:28:36 %SNMP-5-MODULETRAP:Module 4 [Down] Trap 2003 May 28 11:28:36 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "failed(7)" 003 May 28 11:28:50 %SNMP-5-FRUREMOVEDTRAP:module 4 removed 2003 May 28 11:28:50 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483090709 ticks 2003 May 28 11:28:50 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "unknown(1)" 2003 May 28 11:29:07 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483092362 ticks 2003 May 28 11:29:07 %SNMP-5-FRUINSERTEDTRAP:module 4 inserted 2003 May 28 11:30:26 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "ok(2)" 2003 May 28 11:30:26 %SNMP-5-MODULETRAP:Module 4 [Up] Trap 2003 May 28 11:30:27 %SNMP-5-FRUREMOVEDTRAP:module 4 removed 2003 May 28 11:30:27 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483100353 ticks 2003 May 28 11:30:27 %SNMP-5-FRUINSERTEDTRAP:module 4 inserted 2003 May 28 11:30:27 %SYS-3-MOD_PORTINTFINSYNC:Port Interface in sync for Module 4
確保NAM成功重新啟動:
nms-6506a> (enable) sh mod 4 Mod Slot Ports Module-Type Model Sub Status --- ---- ----- ------------------------- ------------------- --- -------- 4 4 2 Network Analysis Module WS-X6380-NAM no ok !--- Yes, it is up again.
會話進入NAM並發出upgrade命令:
nms-6506a> (enable) sess 4 Trying NAM-4... Connected to NAM-4. Escape character is '^]'. Cisco Network Analysis Module (WS-X6380-NAM) Maintenance Partition !--- Notice how this states Maint Partition now. login: root Password: !--- Enter the password (the default password here is 'cisco'). Network Analysis Module (WS-X6380-NAM) Console, 1.2(1a)m Copyright (c) 1999, 2000, 2001 by cisco Systems, Inc. root@nms-6506a-nam.123.cisco.com#upgrade ftp://cse:csecse@172.18.123.68/ local/home/cse/c6nam.3-1-1.bin.gz !--- Notice that the complete path was specified after the IP address, !--- the same path that was retrieved from the "pwd" command on the server. !--- For this reason, it is encouraged to use your UNIX server as your !--- FTP server. If necessary, get your sysadmin to enable FTP on it !--- temporarily to upgrade this NAM. !--- This step takes the longest time to upgrade. root@nms-6506a-nam.123.cisco.com#upgrade ftp://cse:csecse@172.18.123.68/ local/home/cse/c6nam.3-1-1.bin.gz500 'SIZE c6nam.3-1-1.bin.gz': command not understood. ftp://cse:csecse@172.18.123.68/local/home/cse/c6nam.3-1-1.bin.gz (unknown size) - [|] 41362K !--- This goes on for a long time. !--- You have to be patient through this. !--- Then, after a lot of time, (can run for hours): 75671250 bytes transferred in 3010.21 sec (24.55k/sec) downloaded image version 3.1(1) Upgrade file ftp://cse:csecse@172.18.123.68/local/home/cse/c6nam.3-1-1.bin.gz is downloaded. Upgrading will wipe out the contents of the application partition on the hard disk. Do you want to proceed installing it [y|N]: y Proceeding with installation. Please do not interrupt. If installation is interrupted or fails, boot this partition again and restart upgrade. !--- After a few minutes, you should see this: Upgrade complete. You can boot the new application partition. root@nms-6506a-nam.123.cisco.com#
返回並重設交換器:
root@nms-6506a-nam.123.cisco.com#exit nms-6506a> (enable) reset 4 This command will reset module 4. Unsaved configuration on module 4 will be lost Do you want to continue (y/n) [n]? y Module 4 shut down in progress, do not remove module until shutdown completed. you might see these log messages as well: 2003 May 28 12:47:45 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "unknown(1)" 2003 May 28 12:47:45 %SNMP-5-MODULETRAP:Module 4 [Down] Trap 2003 May 28 12:47:45 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "failed(7)" 2003 May 28 12:48:00 %SNMP-5-FRUREMOVEDTRAP:module 4 removed 2003 May 28 12:48:00 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483565551 ticks 2003 May 28 12:48:00 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "unknown(1)" 2003 May 28 12:48:16 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483567205 ticks 2003 May 28 12:48:16 %SNMP-5-FRUINSERTEDTRAP:module 4 inserted 2003 May 28 12:48:00 %SNMP-5-FRUREMOVEDTRAP:module 4 removed 2003 May 28 12:48:00 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483565551 ticks 2003 May 28 12:48:00 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "unknown(1)" 2003 May 28 12:48:16 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483567205 ticks 2003 May 28 12:48:16 %SNMP-5-FRUINSERTEDTRAP:module 4 inserted 2003 May 28 12:50:22 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "ok(2)" 2003 May 28 12:50:22 %SNMP-5-MODULETRAP:Module 4 [Up] Trap 2003 May 28 12:50:22 %SNMP-5-FRUREMOVEDTRAP:module 4 removed 2003 May 28 12:50:22 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483579792 ticks 2003 May 28 12:50:22 %SNMP-5-FRUINSERTEDTRAP:module 4 inserted 2003 May 28 12:50:23 %SYS-3-MOD_PORTINTFINSYNC:Port Interface in sync for Module 4
最後,再次登入NAM:
nms-6506a> (enable) sess 4 Trying NAM-4... Connected to NAM-4. Escape character is '^]'. Cisco Network Analysis Module (WS-X6380-NAM) !--- NOTE #1: The 3.1 application image upgrade requires a special !--- one-time extra reboot for optimal NAM 3.1 operation. !--- Reboot the NAM immediately after logging in. !--- NOTE #2: Although it is NOT recommended, if for some reason you either !--- want to downgrade the application image later on this NAM or reinstall !--- the maintenance image, it is necessary to first install the NAM !--- downgrade patch. login: root Password: Terminal type: vt100 Cisco Network Analysis Module (WS-X6380-NAM) Console, 3.1(1) Copyright (c) 1999-2003 by cisco Systems, Inc. root@nms-6506a-nam.123.cisco.com# root@nms-6506a-nam.123.cisco.com# reboot !--- Reboot the NAM one last time. Reboot the NAM? (Y/N) [N]: y
等待NAM重新啟動
!--- Note: NAM 3.1 takes a little longer to reboot (7-10 minutes). Look for these logs: 2003 May 28 12:55:08 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "unknown(1)" 2003 May 28 12:55:08 %SNMP-5-MODULETRAP:Module 4 [Down] Trap 2003 May 28 12:55:08 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "failed(7)" 2003 May 28 12:55:23 %SNMP-5-FRUREMOVEDTRAP:module 4 removed 2003 May 28 12:55:23 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483609821 ticks 2003 May 28 12:55:23 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "unknown(1)" 2003 May 28 12:55:39 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483611474 ticks 2003 May 28 12:55:39 %SNMP-5-FRUINSERTEDTRAP:module 4 inserted
最後:
2003 May 28 12:57:17 %SNMP-5-ENTITYMODTRAP:Module 4 status changed to "ok(2)" 2003 May 28 12:57:17 %SNMP-5-MODULETRAP:Module 4 [Up] Trap 2003 May 28 12:57:18 %SNMP-5-FRUREMOVEDTRAP:module 4 removed 2003 May 28 12:57:18 %SNMP-5-ENTITYTRAP:Entity Mib last change time 483621409 ticks 2003 May 28 12:57:18 %SNMP-5-FRUINSERTEDTRAP:module 4 inserted 2003 May 28 12:57:18 %SYS-3-MOD_PORTINTFINSYNC:Port Interface in sync for Module 4
使用本節內容,確認您的組態是否正常運作。
輸出直譯器工具(僅供已註冊客戶使用)(OIT)支援某些show命令。使用OIT檢視show命令輸出的分析。
show mod
nms-6506a> (enable) sh mod 4 Mod Slot Ports Module-Type Model Sub Status --- ---- ----- ------------------------- ------------------- --- -------- 4 4 2 Network Analysis Module WS-X6380-NAM no ok (i) login again to see the version: nms-6506a> (enable)sess 4 Trying NAM-4... Connected to NAM-4. Escape character is '^]'. Cisco Network Analysis Module (WS-X6380-NAM) login: root Password: Terminal type: vt100 Cisco Network Analysis Module (WS-X6380-NAM) Console, 3.1(1) Copyright (c) 1999-2003 by cisco Systems, Inc. root@nms-6506a-nam.123.cisco.com#
目前尚無適用於此組態的具體疑難排解資訊。