Date created: Friday, August 14, 2015 10:11:52 AM. Last modified: Monday, February 8, 2016 6:06:14 PM

ASR9006 Upgrade 5.1.2 [default] to 5.1.3 [default] Example

Commands used to upgrade IOS-XR 5.1.2 K9 [Default] on stock ASR 9006 to IOS-XR 5.1.3 K9 [Default]

# Enter admin mode

admin

# Verify that all RSPs/CPUs are in “IOS XR RUN” state, SPAs & MPAs in “OK” state, Fan Tray and Power Modules are in “READY” state

(admin)# show platform


# Verify that Active & Standby RSP are available and in “ACTIVE role” & “is ready” states

(admin)# show redundancy


# Verify that the proper set of packages are active

(admin)# show install active


# Check/fix the configuration file system

(admin)# cfs check


(admin)# clear configuration inconsistency


# Check system state / record initial state if not done so

(admin)# show system verify start


# Make sure you have enought disk space to perform the upgrade. A minimum of 500MB-750MB of free disk0: disk space is required for the upgrade, it could take upto 1.5GBs

(admin)# show filesystem | inc disk0:


# You can free up space by removing old files from disk0:
# before removing old files issue:

(admin)# install commit


# To view files that will be deleted:

(admin)# install remove inactive test sync


# After ensuring all active packages are ‘committed’, then issue the following command from admin mode:

(admin)# install remove inactive


# This will show errors which can be safely ignored
Error:    Cannot proceed with the remove operation because there are no
Error:    packages that can be removed. Packages can only be removed if they
Error:    are not part of the active software and not part of the committed
Error:    software.



# Verify Mgmt LAN access to the router

# ping IP.OF.TFTP.SERVER


# Back up the running config:

 #copy running-config tftp://x.x.x.x/running_config.txt
 #admin
 (admin)#copy running-config tftp://x.x.x.x/admin-running_config.txt
 (admin)#exit


# Disable disk mirroring. Disk mirroring can increase upgrade time. Enable disk mirroring after upgrading.
# On ASR9001 there aren't dual disks so disk mirroring isn't running!

 (admin)#show system backup
 Thu Apr 16 14:47:56.015 UTC
 The show system backup command is not supported on the ASR9000 platform.

(admin)#show mirror
Thu Aug 13 09:49:25.391 BST

Mirror Information for 0/RSP0/CPU0.
========================================================
 Mirroring Enabled
   Configured Primary:         disk0:
   Configured Secondary:       disk1:

 Current Mirroring State:      Redundant
   Current Physical Primary:   disk0:
   Current Physical Secondary: disk1:

 Mirroring Logical Device:     disk0:
 Mirroring Logical Device2:    disk1:

 Physical Device     State       Flags
--------------------------------------------------------
  disk0:           Available     Enabled
  disk1:           Available     Enabled
  compactflash:    Not Present
  (null)           Available
  disk0a:          Available
  disk1a:          Available
  compactflasha:   Not Present
  harddisk:        Available

Mirroring Rommon Variable
 BOOT_DEV_SEQ_CONF = disk0:;disk1:
 BOOT_DEV_SEQ_OPER = disk0:;disk1:
 MIRROR_ENABLE = Y



# To add individual pies to disk you can specify them in one long command.
The use of ‘sync’ option will prevent the user from executing any other command during the install operation, and is recommended.

(admin)# install add tftp://172.16.1.99/asr9k-mini-p.pie-5.1.3 tftp://172.16.1.99/asr9k-upgrade-p.pie-5.1.3  tftp://172.16.1.99/asr9k-mcast-p.pie-5.1.3 tftp://172.16.1.99/asr9k-mgbl-p.pie-5.1.3 tftp://172.16.1.99/asr9k-mpls-p.pie-5.1.3 tftp://172.16.1.99/asr9kk9sec-p.pie-5.1.3 tftp://172.16.1.99/asr9k-video-p.pie-5.1.3 tftp://172.16.1.99/asr9k-doc-p.pie-5.1.3 tftp://172.16.1.99/asr9k-optic-p.pie-5.1.3 sync


# This can generate errors so each pie needs to be added indvidually

install add tftp://172.16.1.99/asr9k-mini-p.pie-5.1.3 sync


# I uploaded an entire 5.1.3-k9 1.25GB image as a whole tar file to the onbaord SSD

 RP/0/RSP0/CPU0:router(admin)# install add disk0a:/ASR9K-iosxr-px-k9-5.1.3.tar sync


# List the inactive packages

(admin)# show install inactive summary


# Using the list of inactive packages select and test the activation using

(admin)# install activate disk0:asr9k-services-infra-5.1.3 disk0:asr9k-optic-px-5.1.3 disk0:asr9k-doc-px-5.1.3 disk0:asr9k-9000v-nV-px-5.1.3 disk0:asr9k-bng-px-5.1.3 disk0:asr9k-fpd-px-5.1.3 disk0:asr9k-mpls-px-5.1.3 disk0:asr9k-video-px-5.1.3 disk0:asr9k-mcast-px-5.1.3 disk0:asr9k-mgbl-px-5.1.3 disk0:asr9k-asr903-nV-px-5.1.3 disk0:asr9k-services-px-5.1.3 disk0:asr9k-mini-px-5.1.3 disk0:asr9k-li-px-5.1.3 disk0:asr9k-asr901-nV-px-5.1.3 disk0:asr9k-k9sec-px-5.1.3 sync test


# Check for errors where X will have been the install operation number printed to the console during the testing

(admin)# show install log X detail


# Any configuration that is removed due to changing IOS version can be seen with

(admin)# show configuration removed


# Now activate the packages without the test keyword (this will cause a router reload)

(admin)# install activate disk0:asr9k-services-infra-5.1.3 disk0:asr9k-optic-px-5.1.3 disk0:asr9k-doc-px-5.1.3 disk0:asr9k-9000v-nV-px-5.1.3 disk0:asr9k-bng-px-5.1.3 disk0:asr9k-fpd-px-5.1.3 disk0:asr9k-mpls-px-5.1.3 disk0:asr9k-video-px-5.1.3 disk0:asr9k-mcast-px-5.1.3 disk0:asr9k-mgbl-px-5.1.3 disk0:asr9k-asr903-nV-px-5.1.3 disk0:asr9k-services-px-5.1.3 disk0:asr9k-mini-px-5.1.3 disk0:asr9k-li-px-5.1.3 disk0:asr9k-asr901-nV-px-5.1.3 disk0:asr9k-k9sec-px-5.1.3 sync

# Or use a wildcard with "install activate disk0:asr9k*-5.1.3 sync"


# Check to see if there was any failed startup configuration

(admin)# show configuration failed startup


# Verify that all RSPs/CPUs are in “IOS XR RUN” state, SPAs & MPAs in “OK” state, Fan Tray and Power Modules are in “READY” state

(admin)# show platform


# Verify that Active & Standby RSP are available and in “ACTIVE role” & “is ready” states

(admin)# show redundancy


# Verify that the required interfaces are “UP” for remote management at least
(admin)# show interface summary


# Verify that the proper set of packages are active
(admin)# show install active


# Verify/fix configuration file system in admin mode
(admin)# cfs check
(admin)# clear configuration inconsistency


# Commit the newly activated software and verify:
(admin)# install commit
(admin)# show install committed summary


# Check if any linecard firmware files need to be upgraded:
(admin)# show hw-module fpd location all


# Auto FPD Upgrade on ASR9K
# Starting 4.0.1; user can configure this option, it will allow automatic fpd upgrade
# Following shows how to config for Auto FPD Upgrade

(admin)# conf
(admin-config)# fpd auto-upgrade
(admin-config)# commit

(admin)# show hw-module fpd location all
(admin)# show fpd package
(admin)# upgrade hw-module fpd all location all
# ^ this last comamnd will cause any line cards that need upgrading to reboot


RP/0/RSP0/CPU0:router1(admin)#upgrade hw-module fpd all location all
Fri Aug 21 09:30:43.588 BST

***** UPGRADE WARNING MESSAGE: *****
  *  This upgrade operation has a maximum timout of 160 minutes.  *
  *  If you are executing the cmd for one specific location and  *
  *  card in that location reloads or goes down for some reason  *
  *  you can press CTRL-C to get back the RP's prompt.           *
  *  If you are executing the cmd for _all_ locations and a node *
  *  reloads or is down please allow other nodes to finish the   *
  *  upgrade process before pressing CTRL-C.                     *

% RELOAD REMINDER:
  - The upgrade operation of the target module will not interrupt its normal
    operation. However, for the changes to take effect, the target module
    will need to be manually reloaded after the upgrade operation. This can
    be accomplished with the use of "hw-module  reload" command.
  - If automatic reload operation is desired after the upgrade, please use
    the "reload" option at the end of the upgrade command.
  - The output of "show hw-module fpd location" command will not display
    correct version information after the upgrade if the target module is
    not reloaded.
NOTE: Chassis CLI will not be accessible while upgrade is in progress.
Continue? [confirm]
This can take some time for a full chassis.
Ensure that system is not power cycled during the upgrades.
Please consult the documentation for more information.
Continue ? [no]: yes


FPD upgrade in progress on some hardware, reload/configuration change
on those is not recommended as it might cause HW programming failure
and result in RMA of the hardware.


Starting the upgrade/download of following FPDs:
=========== ==== ======= ======= =========== =========
                                   Current    Upg/Dng
Location    Type Subtype Upg/Dng   Version    Version
=========== ==== ======= ======= =========== =========
0/FT0/SP    ft   cbc     upg         5.00        5.02
0/FT1/SP    ft   cbc     upg         5.00        5.02
0/BPID0/SP  bp   cbc     upg         7.103       7.104
------------------------------------------------------
No fpd on location 0/RSP1/CPU0 need upgrade at this time.
Starting the upgrade/download of following FPD:
=========== ==== ======= ======= =========== =========
                                   Current    Upg/Dng
Location    Type Subtype Upg/Dng   Version    Version
=========== ==== ======= ======= =========== =========
0/0/CPU0    lc   cbc     upg        20.117      20.118
------------------------------------------------------
Starting the upgrade/download of following FPD:
=========== ==== ======= ======= =========== =========
                                   Current    Upg/Dng
Location    Type Subtype Upg/Dng   Version    Version
=========== ==== ======= ======= =========== =========
0/1/CPU0    lc   cbc     upg        20.117      20.118
------------------------------------------------------
FPD upgrade in progress. Max timeout remaining 89 min.
FPD upgrade in progress. Max timeout remaining 88 min.
FPD upgrade in progress. Max timeout remaining 87 min.
FPD upgrade in progress. Max timeout remaining 86 min.
FPD upgrade in progress. Max timeout remaining 85 min.
Successfully upgraded       cbc for         A9K-MOD80-SE on location    0/0/CPU0 from 20.117 to 20.118
Successfully upgraded       cbc for         A9K-MOD80-SE on location    0/1/CPU0 from 20.117 to 20.118
FPD upgrade in progress. Max timeout remaining 84 min.
FPD upgrade in progress. Max timeout remaining 83 min.
FPD upgrade in progress. Max timeout remaining 82 min.
FPD upgrade in progress. Max timeout remaining 81 min.
FPD upgrade in progress. Max timeout remaining 80 min.
FPD upgrade in progress. Max timeout remaining 79 min.
FPD upgrade in progress. Max timeout remaining 78 min.
FPD upgrade in progress. Max timeout remaining 77 min.
Successfully upgraded       cbc for         ASR-9006-FAN on location    0/FT0/SP from  5.00 to  5.02
Successfully upgraded       cbc for         ASR-9006-FAN on location    0/FT1/SP from  5.00 to  5.02
Successfully upgraded       cbc for       ASR-9006-BPID2 on location  0/BPID0/SP from  7.103 to  7.104


FPD upgrade has ended.

RP/0/RSP0/CPU0:router1(admin)#RP/0/RSP0/CPU0:2015 Aug 21 09:52:13.300 BST: ipv4_rib[1148]: %ROUTING-RIB-3-UPDATE_TIMEOUT : Client "bgp" updated the RIB without signaling update completion for Vrf: "default" Tbl: "default" Safi: "Unicast"

RP/0/RSP0/CPU0:router(admin)#


# Check again that no line card firwmare needs upgrading
(admin)# show hw-module fpd location all
# If you disabled disk mirroring  re-enable it.
# show mirror

# Clean up.
# To obtain a list of inactive packages and note the names of packages that are not needed:

(admin)# show install inactive summary


# Remove the unnecessary inactive packages

(admin)# install remove disk0:package1 disk0:package2 sync
or
(admin)# install remove inactive sync