이 문서에서는 ASR 9000 Series Aggregation Services Router nV Edge 클러스터에서 스크립팅된 랙별 업그레이드를 수행하거나 다시 로드 소프트웨어 유지관리 업그레이드(SMU)를 활성화하는 방법에 대해 설명합니다.랙별 업그레이드를 사용하여 각 랙에 새 소프트웨어 릴리스 또는 소프트웨어 패치(SMU)를 한 번에 하나씩 설치할 수 있습니다.클러스터의 각 랙에 케이블 리던던시를 통합하는 네트워크 토폴로지에 대한 소프트웨어 업그레이드 시 패킷 손실이 최소화됩니다.
이 문서의 초기 게시 날짜 2014년 5월부터는 클러스터에서 SMU를 업그레이드하거나 활성화하는 세 가지 방법이 지원됩니다.
이 문서에서는 방법 3에 대해 설명합니다.
패킷 손실은 규모 및 기능에 따라 다르지만, 8s <> 180년대 이후 어디에나 발생할 것으로 예상됩니다.
다음 주제에 대한 지식을 보유하고 있으면 유용합니다.
이 문서의 정보는 2개의 ASR 9001s, Cisco IOS XR Release 4.3.2 to 5.1.0 및 Ubuntu Linux 워크스테이션을 기반으로 합니다.
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다.이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다.현재 네트워크가 작동 중인 경우, 모든 명령어의 잠재적인 영향을 미리 숙지하시기 바랍니다.
Enter into KSH and copy the script to disk0:
From exec mode type 'run' to enter KSH.
Copy the file from /pkg/bin/ folder using the following command:
cp /pkg/bin/nv_edge_upgrade.exp <destination>
eg: cp /pkg/bin/nv_edge_upgrade.exp /disk0:
After this the script can be copied off the router and modified.
sudo yum install expect
또는
sudo apt-get install expect
root@ubuntu:~$ whereis expect
expect: /usr/bin/expect /usr/bin/X11/expect /usr/share/man/man1/expect.1.gz
root@ubuntu:~$
#!/usr/bin/expect -f
set rack0_addr "172.18.226.153"
set rack0_port "2049"
set rack0_stby_addr "172.27.152.19"
set rack0_stby_port "2004"
set rack1_addr "172.18.226.153"
set rack1_port "2050"
set rack1_stby_addr "172.27.152.19"
set rack1_stby_port "2007"
set router_username "cisco"
set router_password "cisco"
set image_list "disk0:asr9k-mini-px-5.1.0 \
disk0:asr9k-fpd-px-5.1.0 \
disk0:asr9k-mpls-px-5.1.0 \
disk0:asr9k-mgbl-px-5.1.0 \
disk0:asr9k-bng-px-5.1.0 \ "
활성화할 SMU 다시 로드
set image_list "disk0:asr9k-px-5.1.0-CSCxxXXXXX-1.0.0 \ "
set irl_list {{TenGigE 0/0/2/0} {TenGigE 0/0/2/1} {TenGigE 1/0/2/0} {TenGigE 1/0/2/1} }
proc router_disconnect { } {
global debug_mode
global connected_rack
if {$debug_mode == 1} { return }
send -- "\35"
sleep 1
expect -exact "telnet> "
send -- "quit\r"
expect eof
set connected_rack -1
sleep 5
admin
install add tar ftp://cisco:cisco@10.118.12.236/5.1.0.tar sync
root@ubuntu:~/nV$ expect nv_edge_upgrade.exp
########################
This CLI Script performs a software upgrade on
an ASR9k Nv Edge system, using a rack-by-rack
parallel reload method. This script will modify
the configuration of the router, and will incur
traffic loss.
Do you wish to continue [y/n] y
이 섹션을 사용하여 컨피그레이션이 제대로 작동하는지 확인합니다.
스크립트/업그레이드 진행률은 Linux 워크스테이션에서 확인할 수 있습니다.랙별 업그레이드를 완료하는 데 약 45~60분이 소요됩니다.
ASR 9000에서 소프트웨어 업그레이드/SMU 활성화 및 nV Edge 시스템 상태를 확인하려면 다음 단계를 수행하십시오.
RP/0/RSP0/CPU0:ASR9006#show install active summary
Mon Mar 31 12:43:43.825 EST
Default Profile:
SDRs:
Owner
Active Packages:
disk0:asr9k-fpd-px-5.1.0
disk0:asr9k-mgbl-px-5.1.0
disk0:asr9k-mpls-px-5.1.0
disk0:asr9k-mini-px-5.1.0
disk0:asr9k-bng-px-5.1.0
disk0:asr9k-px-5.1.0-CSCxxXXXXX-1.0.0
RP/0/RSP0/CPU0:ASR9006#show install committed summary
Mon Mar 31 12:44:07.250 EST
Default Profile:
SDRs:
Owner
Committed Packages:
disk0:asr9k-fpd-px-5.1.0
disk0:asr9k-mgbl-px-5.1.0
disk0:asr9k-mpls-px-5.1.0
disk0:asr9k-mini-px-5.1.0
disk0:asr9k-bng-px-5.1.0
disk0:asr9k-px-5.1.0-CSCxxXXXXX-1.0.0
show nv edge data forwarding location all
<Snippet>
-----------------node0_RSP0_CPU0------------------
nV Edge Data interfaces in forwarding state: 4
TenGigE0_0_1_3 <--> TenGigE1_0_0_3
TenGigE0_1_1_3 <--> TenGigE1_1_0_3
TenGigE0_2_1_3 <--> TenGigE1_2_0_3
TenGigE0_3_1_3 <--> TenGigE1_3_0_3
<Snippet>
이 출력에서 IRL은 전달 상태로 표시되어야 합니다.
show nv edge control control-link-protocols location 0/RSP0/CPU0
<Snippet>
Port enable administrative configuration setting: Enabled
Port enable operational state: Enabled
Current bidirectional state: Bidirectional
Current operational state: Advertisement - Single neighbor detected
Priority lPort Remote_lPort UDLD STP
======== ===== ============ ==== ========
0 0/RSP0/CPU0/0 1/RSP0/CPU0/0 UP Forwarding
1 0/RSP0/CPU0/1 1/RSP1/CPU0/1 UP Blocking
2 0/RSP1/CPU0/0 1/RSP1/CPU0/0 UP On Partner RSP
3 0/RSP1/CPU0/1 1/RSP0/CPU0/1 UP On Partner RSP
이 출력에서 'Current bidirectional state'는 Bidirectional로 표시되며 포트 중 하나만 Forwarding(전달) 상태에 있어야 합니다.
RP/0/RSP0/CPU0:ASR9006#admin show dsc
---------------------------------------------------------
Node ( Seq) Role Serial State
---------------------------------------------------------
0/RSP0/CPU0 ( 0) ACTIVE FOX1613G35U PRIMARY-DSC
0/RSP1/CPU0 (10610954) STANDBY FOX1613G35U NON-DSC
1/RSP0/CPU0 ( 453339) STANDBY FOX1611GQ5H NON-DSC
1/RSP1/CPU0 (10610865) ACTIVE FOX1611GQ5H BACKUP-DSC
이 명령은 시스템의 모든 RSP(Route Switch Processor)에 대한 DSC(랙 간) 상태 및 이중화 역할(랙 내)을 모두 표시합니다.
이 예에서는
현재 이 컨피그레이션에 사용할 수 있는 특정 문제 해결 정보가 없습니다.