本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本檔案將說明執行Cisco IOS® XR7軟體版本之路由器的軟體維護更新(SMU)安裝。
註:Cisco IOS XR7(也稱為Lindt)是一種XR軟體架構的演變。它當前適用於Cisco 8000、NCS 540L和NCS-57B1系列。軟體版本可以包含數字7,但仍會觀察cXR或eXR軟體體系結構(例如,ASR 9000 XR 7.5.2版本不是XR7體系結構)。有關詳細資訊,請參閱此處的資料表。
思科建議您瞭解以下主題:
本文檔中的資訊基於所有運行Cisco IOS XR7的路由器。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
harddisk:/<path-to-repository>。
#scp *.tar admin@10.124.50.24:/harddisk:/repo
(admin@10.124.50.24) Password:
8000-7.8.2.CSCwc95868 .tar 100% 260MB 894.1KB/s 04:57
8000-7.8.2.CSCwe50868 .tar 100% 180KB 676.5KB/s 00:00
8000-7.8.2.CSCwe67656 .tar 100% 259MB 734.8KB/s 06:01
8000-7.8.2.CSCwh35363 .tar 100% 2960KB 804.6KB/s 00:03
注意:您也可以在路由器上使用複製操作,以便從FTP/TFTP等遠端伺服器複製檔案。這是引入的copy命令。
- 登入到路由器並使用兩個簡單的shell指令碼來解壓縮您上載的所有SMU檔案。
RP/0/RP0/CPU0:8201#run
[node0_RP0_CPU0:~]$cd /harddisk:/repo/
[node0_RP0_CPU0:/harddisk:/repo]$ls -al
total 534524
drwxr-xr-x. 3 root root 4096 Feb 8 12:50 .
drwxrwxrwx. 19 root root 4096 Feb 8 12:41 ..
-rwxr-xr-x. 1 root root 272168960 Feb 8 11:43 8000-7.8.2.CSCwc95868 .tar
-rwxr-xr-x. 1 root root 184320 Feb 8 11:43 8000-7.8.2.CSCwe50868 .tar
-rwxr-xr-x. 1 root root 271953920 Feb 8 11:49 8000-7.8.2.CSCwe67656 .tar
-rwxr-xr-x. 1 root root 3031040 Feb 8 11:49 8000-7.8.2.CSCwh35363 .tar
[node0_RP0_CPU0:/harddisk:/repo]$
[node0_RP0_CPU0:/harddisk:/repo]$for tar in *.tar; do tar -xvf $tar; done
8000-7.8.2.CSCwc95868 .txt
8000-x86_64-7.8.2-CSCwc95868.tgz
8000-7.8.2.CSCwe50868 .txt
8000-x86_64-7.8.2-CSCwe50868.tgz
8000-7.8.2.CSCwe67656 .txt
8000-x86_64-7.8.2-CSCwe67656.tgz
8000-7.8.2.CSCwh35363 .txt
8000-x86_64-7.8.2-CSCwh35363.tgz
[node0_RP0_CPU0:/harddisk:/repo]$
[node0_RP0_CPU0:/harddisk:/repo]$for tgz in *.tgz; do tar -xvf $tgz; done
8000-x86_64-7.8.2-CSCwc95868/
8000-x86_64-7.8.2-CSCwc95868/8101-32h-cpa-sb-x86-7.8.2v1.0.4-r0.corei7_64.rpm
8000-x86_64-7.8.2-CSCwc95868/8102-64h-cpa-sb-x86-7.8.2v1.0.4-r0.corei7_64.rpm
8000-x86_64-7.8.2-CSCwc95868/8111-32eh-cpa-sb-x86-7.8.2v1.0.4-r0.corei7_64.rpm
8000-x86_64-7.8.2-CSCwc95868/8201-32fh-cpa-sb-x86-7.8.2v1.0.4-r0.corei7_64.rpm
8000-x86_64-7.8.2-CSCwc95868/8201-cpa-sb-x86-7.8.2v1.0.4-r0.corei7_64.rpm
設定
配置本地儲存庫
RP/0/RP0/CPU0:8201(config)#install
RP/0/RP0/CPU0:8201(config-install)#repository local-repo
RP/0/RP0/CPU0:8201(config-repository)#url file:///harddisk:/repo/
RP/0/RP0/CPU0:8201(config-repository)#commit
在「儲存庫」下驗證SMU
- 檢查SMU修復了哪些元件。
RP/0/RP0/CPU0:8201#show install available
Trying to access repositories...
Package Architecture Version Repository Cached
---------------------------------------------------- ---------------- --------------------------- ----------------------------------- ------
xr-8000-core x86_64 7.8.2v1.0.1-1 local-repo
xr-8000-core x86_64 7.8.2v1.0.1-1 local-repo
xr-8000-cpa x86_64 7.8.2v1.0.3-1 local-repo
xr-8000-cpa x86_64 7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu x86_64 7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu x86_64 7.8.2v1.0.6-1 local-repo
xr-8000-forwarder x86_64 7.8.2v1.0.1-1 local-repo
xr-cpa-common x86_64 7.8.2v1.0.4-1 local-repo
xr-cpa-common x86_64 7.8.2v1.0.6-1 local-repo
xr-cpa-driver-optics x86_64 7.8.2v1.0.1-1 local-repo
xr-cpa-driver-optics x86_64 7.8.2v1.0.3-1 local-repo
xr-is-is x86_64 7.8.2v1.0.2-1 local-repo
xr-optics x86_64 7.8.2v1.0.1-1 local-repo
xr-optics x86_64 7.8.2v1.0.2-1 local-repo
- 檢查本地儲存庫中包含以下內容的SMU ID:
RP/0/RP0/CPU0:8201#show install fixes available
Trying to access repositories...
Available Fixes (count: 9):
Bug Id Packages Repository Cached
----------- ----------------------------------------------------------- ---------------------------------------- ------
CSCwc95868 xr-8000-cpa-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.6-1 local-repo
xr-cpa-common-7.8.2v1.0.6-1 local-repo
xr-cpa-driver-optics-7.8.2v1.0.3-1 local-repo
CSCwe50868 xr-8000-forwarder-7.8.2v1.0.1-1 local-repo
CSCwe54175 xr-is-is-7.8.2v1.0.2-1 local-repo
CSCwe54265 xr-8000-core-7.8.2v1.0.1-1 local-repo
xr-8000-cpa-7.8.2v1.0.3-1 local-repo
xr-8000-cpa-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.6-1 local-repo
xr-cpa-common-7.8.2v1.0.4-1 local-repo
xr-cpa-common-7.8.2v1.0.6-1 local-repo
xr-optics-7.8.2v1.0.1-1 local-repo
xr-optics-7.8.2v1.0.2-1 local-repo
CSCwe67656 xr-8000-cpa-7.8.2v1.0.3-1 local-repo
xr-8000-cpa-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.6-1 local-repo
xr-cpa-common-7.8.2v1.0.4-1 local-repo
xr-cpa-common-7.8.2v1.0.6-1 local-repo
CSCwe90105 xr-8000-cpa-7.8.2v1.0.3-1 local-repo
xr-8000-cpa-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.6-1 local-repo
xr-cpa-common-7.8.2v1.0.4-1 local-repo
xr-cpa-common-7.8.2v1.0.6-1 local-repo
xr-cpa-driver-optics-7.8.2v1.0.1-1 local-repo
xr-cpa-driver-optics-7.8.2v1.0.3-1 local-repo
CSCwf20312 xr-8000-cpa-npu-7.8.2v1.0.4-1 local-repo
xr-8000-cpa-npu-7.8.2v1.0.6-1 local-repo
xr-cpa-common-7.8.2v1.0.4-1 local-repo
xr-cpa-common-7.8.2v1.0.6-1 local-repo
CSCwf30655 xr-8000-cpa-npu-7.8.2v1.0.6-1 local-repo
xr-cpa-common-7.8.2v1.0.6-1 local-repo
xr-cpa-driver-optics-7.8.2v1.0.3-1 local-repo
xr-optics-7.8.2v1.0.2-1 local-repo
CSCwh35363 xr-is-is-7.8.2v1.0.2-1 local-repo
SMU安裝
SMU啟用需要三個操作步驟:
- 使用install package命令將SMU增加到檔案系統。
- 使用install apply 命令在系統上啟用SMU(如果重新載入需要的SMU,則此步驟需要路由器重新載入)。
- 應用SMU之後,切記安裝提交。
安裝套件作業範例
有三種方法可以將SMU增加到檔案系統:
命令
目的
install package add cisco-CSCab12345
安裝特殊的SMU,如思科漏洞ID CSCab12345
install package upgrade xr-core
安裝SMU的Cisco Unified Presence Server (CUPS)以修復一個或多個特殊元件,如xr-core
install package upgrade
在儲存庫下安裝所有SMU
以下示例說明如何在儲存庫下安裝所有SMU:
RP/0/RP0/CPU0:8201#install package upgrade
Thu Feb 8 13:16:48.087 +08
Install upgrade operation 1.1.1 has started
Install operation will continue in the background
RP/0/RP0/CPU0:8201#show install request
Thu Feb 8 13:17:25.744 +08
User request: install package upgrade
Operation ID: 1.1.1
State: In progress since 2024-02-08 13:16:48 UTC+08:00
Current activity: Verify input and download to internal repository if needed
Next activity: Veto check
Time started: 2024-02-08 13:16:57 UTC+08:00
No per-location information.
安裝套用作業
SMU成功增加到系統後,show install request 輸出顯示的狀態為成功。
RP/0/RP0/CPU0:8201#show install request Thu Feb 8 13:31:19.943 +08 User request: install package upgrade Operation ID: 1.1.1 State: Success since 2024-02-08 13:20:54 UTC+08:00. <<<<< Current activity: Await user input Time started: 2024-02-08 13:20:54 UTC+08:00 The following actions are available: install package add install package remove install package upgrade install package downgrade install package abort latest install package abort all-since-apply install apply reload Least impactful apply method: install apply reload
然後,您可以使用install apply命令啟用SMU。
RP/0/RP0/CPU0:8201#install apply synchronous Thu Feb 8 13:35:18.600 +08 Once the packaging dependencies have been determined, the install operation may have to reload the system. If you want more control of the operation, then explicitly use 'install apply restart' or 'install apply reload' as reported by 'show install request'. Continue? [yes/no]:[yes] yes Starting: install apply reload Atomic change 1.1 Press Ctrl-C to return to the exec prompt. This will not cancel the install operation Current activity: Initializing Current activity: Apply by reload .
安裝確認作業
要使重新載入期間的SMU啟用具有永續性,必須使用install commit命令提交更改。
以下是範例:
RP/0/RP0/CPU0:8201#show install active summary Thu Feb 8 13:46:09.237 +08 Active Packages: XR: 201 All: 1457 Label: 7.8.2 Software Hash: a15e0ebf78fcb8390810ac451cd76935097c3d48b2907a4030dc59ead5ef8b9d Optional Packages Version ---------------------------------------------------- --------------------------- xr-8000-l2mcast 7.8.2v1.0.0-1 xr-8000-mcast 7.8.2v1.0.0-1 xr-8000-netflow 7.8.2v1.0.0-1 xr-bgp 7.8.2v1.0.0-1 xr-ipsla 7.8.2v1.0.0-1 xr-is-is 7.8.2v1.0.2-1 xr-lldp 7.8.2v1.0.0-1 xr-mcast 7.8.2v1.0.0-1 xr-mpls-oam 7.8.2v1.0.0-1 xr-netflow 7.8.2v1.0.0-1 xr-ospf 7.8.2v1.0.0-1 xr-perf-meas 7.8.2v1.0.0-1 xr-perfmgmt 7.8.2v1.0.0-1 xr-track 7.8.2v1.0.0-1 Mandatory Packages with Active Bugfixes Version ---------------------------------------------------- --------------------------- xr-8000-core 7.8.2v1.0.1-1 xr-8000-cpa 7.8.2v1.0.4-1 xr-8000-cpa-npu 7.8.2v1.0.6-1 xr-8000-forwarder 7.8.2v1.0.1-1 xr-cpa-common 7.8.2v1.0.6-1 xr-cpa-driver-optics 7.8.2v1.0.3-1 xr-optics 7.8.2v1.0.2-1 Active Fixes (count: 9): CSCwc95868 : xr-8000-cpa, xr-8000-cpa-npu, xr-cpa-common, xr-cpa-driver-optics CSCwe50868 : xr-8000-forwarder CSCwe54175 : xr-is-is CSCwe54265 : xr-8000-core, xr-8000-cpa, xr-8000-cpa-npu, xr-cpa-common, xr-optics CSCwe67656 : xr-8000-cpa, xr-8000-cpa-npu, xr-cpa-common CSCwe90105 : xr-8000-cpa, xr-8000-cpa-npu, xr-cpa-common, xr-cpa-driver-optics CSCwf20312 : xr-8000-cpa-npu, xr-cpa-common CSCwf30655 : xr-8000-cpa-npu, xr-cpa-common, xr-cpa-driver-optics, xr-optics CSCwh35363 : xr-is-is RP/0/RP0/CPU0:8201# RP/0/RP0/CPU0:8201#install commit Thu Feb 8 13:46:16.209 +08 Install commit operation 1 has started Install operation will continue in the background
還可以使用命令show install request檢查提交狀態。
RP/0/RP0/CPU0:8201#show install request Thu Feb 8 13:47:56.727 +08 User request: install commit Operation ID: 1 State: Success since 2024-02-08 13:46:40 UTC+08:00 Current activity: No install operation in progress The following actions are available: install package add install package remove install package upgrade install package downgrade install package replace install package rollback install replace install rollback install source
驗證
使用以下命令可驗證提交軟體和活動軟體。通常,雜湊值相等。
否則,您可能會忘記安裝提交。
RP/0/RP0/CPU0:8201#show install committed summary | in Hash Thu Feb 8 13:49:32.854 +08 Software Hash: a15e0ebf78fcb8390810ac451cd76935097c3d48b2907a4030dc59ead5ef8b9d RP/0/RP0/CPU0:8201# RP/0/RP0/CPU0:8201#show install active summary | in Hash Thu Feb 8 13:49:43.616 +08 Software Hash: a15e0ebf78fcb8390810ac451cd76935097c3d48b2907a4030dc59ead5ef8b9d RP/0/RP0/CPU0:8201#
疑難排解
這些命令可幫助您瞭解安裝過程、狀態以及是否存在任何錯誤。
命令
目的
show install request [verbose]
檢查安裝程式狀態
show install log [detail]
檢查安裝程式的記錄資訊
show install history table
顯示安裝作業的摘要表
show install history id <ID> [verbose]
顯示特定交易ID選項記錄
show tech-support install
生成TAC支援檔案
修訂 | 發佈日期 | 意見 |
---|---|---|
1.0 |
16-Feb-2024 |
初始版本 |