How to upgrade eXR by one cmd “install replaced” | NCS5500
Awesome upgrade cmd for eXR, that will help customer simplify upgrade procedure and do upgrade automation! Feature release from 652. Just tested and summarized.
I summarized normal upgrade eXR version by install add/prepare/active at former: Upgrade/Install Packages in eXR. For the article, will summary how to upgrade by install replaced.
“Install replaced” is a new cmd that help customer upgrade only by one cmd, don’t need to add/prepare/active steps, that only support by GISO. What is GISO? That is an image bundle, customer can flexibly customize the image, e.g only bundle: ISIS rpm + mini iso + k9 rpm + configuration to one GISO, more GISO information, please check CCO Doc: Flexible Packaging Configuration Guide for Cisco NCS 5500 Series Routers
PS: “Install replaced” that will not affect running configuration, and auto removes inactive rpm, and commit.
Build GISO
[[email protected] exr]# ls -l total 5135776 -rw-r--r--. 1 root root 12473 Sep 23 12:14 config -rwxrwxrwx. 1 root root 125722 Sep 23 22:08 gisobuild.py -rw-r--r--. 1 root root 957 Sep 23 22:08 LICENSE -rw-r--r--. 1 root root 6366659 Sep 25 18:33 ncs5500-bgp-2.0.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 639616 Sep 25 18:33 ncs5500-eigrp-1.0.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 1749209088 Sep 25 18:41 ncs5500-full-x-x.x.x.xxI.iso -rw-r--r--. 1 root root 1751095296 Sep 28 11:46 ncs5500-goldenk9-x-x.x.x.xxI-v1.iso -rw-r--r--. 1 root root 3214003 Sep 25 18:33 ncs5500-isis-2.1.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 1485529 Sep 25 18:33 ncs5500-k9sec-3.1.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 345404 Sep 25 18:33 ncs5500-li-1.0.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 12642002 Sep 25 18:33 ncs5500-mcast-3.0.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 1949806 Sep 25 18:33 ncs5500-mgbl-3.0.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 1716285440 Sep 25 18:50 ncs5500-mini-x-x.x.x.xxI.iso -rw-r--r--. 1 root root 2438967 Sep 25 18:33 ncs5500-mpls-2.1.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 8381947 Sep 25 18:33 ncs5500-mpls-te-rsvp-3.1.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 3671692 Sep 25 18:33 ncs5500-ospf-2.0.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 928578 Sep 25 18:33 ncs5500-parser-2.0.0.0-rxxxxxI.x86_64.rpm -rw-r--r--. 1 root root 2587 Sep 23 22:08 README.md [[email protected] exr]# [[email protected] exr]# python gisobuild.py -i ncs5500-mini-x-x.x.x.xxI.iso -r . -l v1 System requirements check [PASS] Golden ISO build process starting... Platform: ncs5500 Version: x.x.x.xxI Scanning repository [/opt/exr]... Building RPM Database... Total 11 RPM(s) present in the repository path provided in CLI [ 1] ncs5500-isis-2.1.0.0-rxxxxxI.x86_64.rpm [ 2] ncs5500-ospf-2.0.0.0-rxxxxxI.x86_64.rpm [ 3] ncs5500-mgbl-3.0.0.0-rxxxxxI.x86_64.rpm [ 4] ncs5500-li-1.0.0.0-rxxxxxI.x86_64.rpm [ 5] ncs5500-eigrp-1.0.0.0-rxxxxxI.x86_64.rpm [ 6] ncs5500-bgp-2.0.0.0-rxxxxxI.x86_64.rpm [ 7] ncs5500-mpls-2.1.0.0-rxxxxxI.x86_64.rpm [ 8] ncs5500-mpls-te-rsvp-3.1.0.0-rxxxxxI.x86_64.rpm [ 9] ncs5500-mcast-3.0.0.0-rxxxxxI.x86_64.rpm [10] ncs5500-k9sec-3.1.0.0-rxxxxxI.x86_64.rpm [11] ncs5500-parser-2.0.0.0-rxxxxxI.x86_64.rpm Following XR x86_64 rpm(s) will be used for building Golden ISO: (+) ncs5500-ospf-2.0.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-bgp-2.0.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-eigrp-1.0.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-li-1.0.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-mcast-3.0.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-k9sec-3.1.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-mpls-te-rsvp-3.1.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-isis-2.1.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-mgbl-3.0.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-mpls-2.1.0.0-rxxxxxI.x86_64.rpm (+) ncs5500-parser-2.0.0.0-rxxxxxI.x86_64.rpm ...RPM signature check [PASS] Skipping following rpms from repository since they are already present in base ISO: (-) ncs5500-bgp-2.0.0.0-rxxxxxI.x86_64.rpm (-) ncs5500-parser-2.0.0.0-rxxxxxI.x86_64.rpm ...RPM compatibility check [PASS] Building Golden ISO... Summary ..... XR rpms: ncs5500-eigrp-1.0.0.0-rxxxxxI.x86_64.rpm ncs5500-mpls-2.1.0.0-rxxxxxI.x86_64.rpm ncs5500-mcast-3.0.0.0-rxxxxxI.x86_64.rpm ncs5500-li-1.0.0.0-rxxxxxI.x86_64.rpm ncs5500-k9sec-3.1.0.0-rxxxxxI.x86_64.rpm ncs5500-mgbl-3.0.0.0-rxxxxxI.x86_64.rpm ncs5500-mpls-te-rsvp-3.1.0.0-rxxxxxI.x86_64.rpm ncs5500-isis-2.1.0.0-rxxxxxI.x86_64.rpm ncs5500-ospf-2.0.0.0-rxxxxxI.x86_64.rpm ...Golden ISO creation SUCCESS. Golden ISO Image Location: /opt/exr/ncs5500-goldenk9-x-x.x.x.xxI-v1.iso
Copy GISO to Harddisk
RP/0/RP0/CPU0:R4-55A1#copy ftp: harddisk: Sat Sep 28 03:57:43.948 UTC Address or name of remote host []?10.75.58.56 Source username: [anonymous]?cisco Source password: Source filename [/ftp:]?ncs5500-goldenk9-x-x.x.x.xxI-v1.iso Destination filename [/harddisk:/ncs5500-goldenk9-x-x.x.x.xxI-v1.iso]? Accessing ftp://cisco:*@10.75.58.56/ncs5500-goldenk9-x-x.x.x.xxI-v1.iso CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC! CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC! CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 1751095296 bytes copied in 150 sec ( 11626918)bytes/sec RP/0/RP0/CPU0:R4-55A1#!
Install Replaced
RP/0/RP0/CPU0:R5-55A1#show ins ac sum Sat Sep 28 04:46:19.281 UTC Active Packages: 8 ncs5500-xr-6.6.1 version=6.6.1 [Boot image] ncs5500-isis-2.1.0.0-r661 ncs5500-li-1.0.0.0-r661 ncs5500-mcast-2.1.0.0-r661 ncs5500-mpls-2.1.0.0-r661 ncs5500-mpls-te-rsvp-3.1.0.0-r661 ncs5500-ospf-2.0.0.0-r661 ncs5500-mgbl-3.0.0.0-r661 RP/0/RP0/CPU0:R5-55A1#install replace harddisk://ncs5500-goldenk9-x-x.x.x.xxI-v1.iso sync commit noprompt Sat Sep 28 04:47:02.967 UTC ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Install operation 7 started by root: exec-timeout is suspended. No install operation in progress at this moment Install update replace commit is triggered Label = v1 ISO ncs5500-goldenk9-x-x.x.x.xxI-v1.iso in input package list. Going to upgrade the system to version x.x.x.xxI. Scheme : localdisk Hostname : localhost Username : None SourceDir : harddisk:/ Collecting software state.. Getting platform Getting supported architecture Getting active packages from XR Getting inactive packages from XR Getting list of RPMs in local repo Getting list of provides of all active packages Getting provides of each rpm in repo Getting requires of each rpm in repo Fetching .... ncs5500-goldenk9-x-x.x.x.xxI-v1.iso Adding packages ncs5500-goldenk9-x-x.x.x.xxI-v1.iso ! ! Activating ncs5500-goldenk9-x-x.x.x.xxI-v1 Sep 28 04:49:55 Install operation 9 started by admin: install activate pkg ncs5500-goldenk9-x-x.x.x.xxI-v1 replace noprompt synchronous Sep 28 04:49:55 Package list: Sep 28 04:49:55 ncs5500-goldenk9-x-x.x.x.xxI-v1 ! Sep 28 04:50:13 Action 1: install prepare action started Sep 28 04:50:30 Following rpms will be part of operation Sep 28 04:50:31 XR RPMs Sep 28 04:50:32 1:ncs5500-mpls-te-rsvp-3.1.0.0-rxxxxxI.x86_64 Sep 28 04:50:35 2:ncs5500-eigrp-1.0.0.0-rxxxxxI.x86_64 Sep 28 04:50:37 3:ncs5500-mcast-3.0.0.0-rxxxxxI.x86_64 Sep 28 04:50:37 4:ncs5500-mpls-2.1.0.0-rxxxxxI.x86_64 Sep 28 04:50:37 5:ncs5500-k9sec-3.1.0.0-rxxxxxI.x86_64 Sep 28 04:50:37 6:ncs5500-li-1.0.0.0-rxxxxxI.x86_64 Sep 28 04:50:37 7:ncs5500-mgbl-3.0.0.0-rxxxxxI.x86_64 Sep 28 04:50:37 8:ncs5500-isis-2.1.0.0-rxxxxxI.x86_64 Sep 28 04:50:37 9:ncs5500-ospf-2.0.0.0-rxxxxxI.x86_64 ! Sep 28 04:51:18 The prepared software is set to be activated with reload upgrade Sep 28 04:51:19 This install operation will reload the system, continue? [yes/no]:[yes] Sep 28 04:51:19 Start preparing new VM for reload upgrade ! ! Sep 28 05:05:39 All the above nodes completed System Upgrade prepare. Sep 28 05:05:40 Action 1: install prepare action finished successfully Sep 28 05:05:41 Action 2: install activate action started Sep 28 05:05:41 The software will be activated with reload upgrade Sep 28 05:05:44 Following nodes are available for System Upgrade activate: Sep 28 05:05:45 0/RP0 ! ! ! Sep 28 05:09:15 Action 2: install activate action finished successfully Sep 28 05:09:18 Action 2: install activate action finished successfully ! Sep 28 05:09:26 Install operation 9 finished successfully Sep 28 05:09:26 Ending operation 9 exec-timeout is resumed.
Verify after upgrade
User Access Verification Username: Username: admin Password: RP/0/RP0/CPU0:R5-55A1#show ins ac sum Sat Sep 28 05:24:34.524 UTC Active Packages: 10 ncs5500-xr-x.x.x.xxI version=x.x.x.xxI [Boot image] ncs5500-mcast-3.0.0.0-rxxxxxI ncs5500-k9sec-3.1.0.0-rxxxxxI ncs5500-isis-2.1.0.0-rxxxxxI ncs5500-mgbl-3.0.0.0-rxxxxxI ncs5500-mpls-2.1.0.0-rxxxxxI ncs5500-mpls-te-rsvp-3.1.0.0-rxxxxxI ncs5500-eigrp-1.0.0.0-rxxxxxI ncs5500-ospf-2.0.0.0-rxxxxxI ncs5500-li-1.0.0.0-rxxxxxI RP/0/RP0/CPU0:R5-55A1#show install committed summary Sat Sep 28 05:25:16.856 UTC Committed Packages: 10 ncs5500-xr-x.x.x.xxI version=x.x.x.xxI [Boot image] ncs5500-mcast-3.0.0.0-rxxxxxI ncs5500-k9sec-3.1.0.0-rxxxxxI ncs5500-isis-2.1.0.0-rxxxxxI ncs5500-mgbl-3.0.0.0-rxxxxxI ncs5500-mpls-2.1.0.0-rxxxxxI ncs5500-mpls-te-rsvp-3.1.0.0-rxxxxxI ncs5500-eigrp-1.0.0.0-rxxxxxI ncs5500-ospf-2.0.0.0-rxxxxxI ncs5500-li-1.0.0.0-rxxxxxI
版权声明:
本文链接:How to upgrade eXR by one cmd “install replaced” | NCS5500
版权声明:本文为原创文章,仅代表个人观点,版权归 Frank Zhao 所有,转载时请注明本文出处及文章链接