목차

소개

사전 요구 사항

요구 사항

사용되는 구성 요소

준비

구성

로컬 저장소 구성

저장소 아래의 SMU를 확인합니다.

SMU 설치

패키지 설치 작업 예

설치 적용 작업

커밋 작업 설치

다음을 확인합니다.

문제 해결

소개

이 문서에서는 Cisco IOS® XR7 소프트웨어 버전을 실행하는 라우터용 SMU(Software Maintenance Updates) 설치에 대해 설명합니다.

참고: Cisco IOS XR7(Lindt라고도 함)은 XR 소프트웨어 아키텍처의 발전입니다. 현재 Cisco 8000, NCS 540L 및 NCS-57B1 Series에 적용됩니다. 소프트웨어 릴리스에는 숫자 7이 포함될 수 있지만 cXR 또는 eXR 소프트웨어 아키텍처가 관찰됩니다(예: ASR 9000 XR 7.5.2 릴리스는 XR7 아키텍처가 아님). 자세한 내용은 여기의 데이터시트를 참조하십시오.

사전 요구 사항

요구 사항

다음 주제에 대한 지식을 보유하고 있으면 유용합니다.

- Cisco IOS XR7 소프트웨어 설치 워크플로

- Cisco IOS XR7의 설치 작업 및 업그레이드 프로세스를 위한 저장소 설정

사용되는 구성 요소

이 문서의 정보는 Cisco IOS XR7을 실행하는 모든 라우터를 기반으로 합니다.

이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다. 이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다. 현재 네트워크가 작동 중인 경우 모든 명령의 잠재적인 영향을 미리 숙지하시기 바랍니다.

준비

- Cisco Software Download(Cisco 소프트웨어 다운로드) 페이지에서 SMU 파일을 다운로드합니다.

- scp 명령을 사용하여 PC에서 라우터로 이러한 SMU 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 명령이 도입되었습니다.

- 업로드한 모든 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 활성화에는 세 가지 운영 단계가 필요합니다.

1. install package 명령을 사용하여 파일 시스템에 SMU 를 추가합니다.

2. install apply 명령을 사용하여 시스템에서 SMU를 활성화합니다. 이 단계에서는 SMU가 다시 로드해야 하는 SMU인 경우 라우터를 다시 로드해야 합니다.

3. SMU를 적용한 후 커밋을 설치하는 것을 잊지 마십시오.

패키지 설치 작업 예

파일 시스템에 SMU를 추가하기 위한 세 가지 방법이 있습니다.

명령

목적

install package add cisco-CSCab12345

Cisco 버그 ID CSCab와 같은 특수 SMU를 설치합니다12345

install package upgrade xr-core

xr-core와 같은 하나 이상의 특수 구성 요소를 수정하려면 SMU의 CUPS(Cisco Unified Presence Server)를 설치합니다

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  State(상태)가 Success(성공)로 표시됩니다.

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

다음을 확인합니다.

커밋 소프트웨어 및 활성 소프트웨어를 확인하려면 다음 명령을 사용합니다. 일반적으로 해시 값은 같습니다.

그렇지 않은 경우 commit을 설치하는 것을 잊어버릴 수 있습니다.

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 지원 파일 생성