Date created: Friday, August 14, 2015 9:55:51 AM. Last modified: Friday, August 14, 2015 10:32:53 AM
ASR9001 5.2.2 Upgrade
Commands used on ASR9001 running 5.2.2 to upgrade (in this case, reinstall) to 5.2.2 with K9;
# Enter admin mode
admin
# verify that all Nodes are in “IOS XR RUN” state, SPAs 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 an interface is up to reach the TFTP server
(admin)# show interface summary
# 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
# Make sure you have enought disk space to perform the upgrade. A minimum 500MB free disk0: disk space is required for the upgrade, 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
RP/0/RSP0/CPU0:router# ping IP.OF.TFTP.SERVER
# Back up the running config:
RP/0/RSP0/CPU0:router#copy running-config tftp://x.x.x.x/running_config.txt
RP/0/RSP0/CPU0:router#admin
RP/0/RSP0/CPU0:router(admin)#copy running-config tftp://x.x.x.x/admin-running_config.txt
RP/0/RSP0/CPU0:router(admin)#exit
# Disable disk mirroring. Disk mirroring can increase upgrade time. Enable disk mirroring after upgrading the IPS XP.
# On ASR9001 there aren't dual disks so disk mirroring isn't running!
RP/0/RSP0/CPU0:router(admin)#show system backup
Thu Apr 16 14:47:56.015 UTC
The show system backup command is not supported on the ASR9000 platform.
RP/0/RSP0/CPU0:router#show mirror
Thu Apr 16 14:57:26.542 UTC
Mirror Information for 0/RSP0/CPU0.
========================================================
Mirroring Disabled
Current Mirroring State: Not Configured
Current Physical Primary: disk0:
Current Physical Secondary: Not Set
Mirroring Logical Device: disk0:
Mirroring Logical Device2: Not Set
Physical Device State Flags
--------------------------------------------------------
disk0: Available Enabled
disk1: Not Present
compactflash: Not Present
(null) Not Present
disk0a: Available
disk1a: Not Present
compactflasha: Not Present
harddisk: Available
Mirroring Rommon Variable
BOOT_DEV_SEQ_CONF =
BOOT_DEV_SEQ_OPER =
MIRROR_ENABLE =
# 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.
RP/0/RSP0/CPU0:router(admin)# install add tftp://172.16.1.99/asr9k-mini-p.pie-4.1.2 tftp://172.16.1.99/asr9k-upgrade-p.pie-4.1.2 tftp://172.16.1.99/asr9k-mcast-p.pie-4.1.2 tftp://172.16.1.99/asr9k-mgbl-p.pie-4.1.2 tftp://172.16.1.99/asr9k-mpls-p.pie-4.1.2 tftp://172.16.1.99/asr9kk9sec-p.pie-4.1.2 tftp://172.16.1.99/ asr9k-video-p.pie-4.1.2 tftp://172.16.1.99/asr9k-doc-p.pie-4.1.2 tftp://172.16.1.99/asr9k-optic-p.pie-4.1.2 sync
# This can generate errors so each pie needs to be added indvidually
install add tftp://172.16.1.99/asr9k-mini-p.pie-4.1.2 sync
# I uploaded an entire 5.2.2-k9 1.4GB image as a whole tar file
RP/0/RSP0/CPU0:router(admin)# install add tftp://192.169.58.1/ASR9K-iosxr-px-k9-5.2.2.tar
# List the inactive packages
(admin)# show install inactive summary
# Using the list of inactive packages select and test the activation using the
RP/0/RSP0/CPU0:router(admin)# install activate disk0:asr9k-services-infra-5.2.2 disk0:asr9k-k9sec-px-5.2.2 disk0:asr9k-asr903-nV-px-5.2.2 disk0:asr9k-mgbl-px-5.2.2 disk0:asr9k-mcast-px-5.2.2 disk0:asr9k-fpd-px-5.2.2 disk0:asr9k-video-px-5.2.2 disk0:asr9k-9000v-nV-px-5.2.2 disk0:asr9k-optic-px-5.2.2 disk0:asr9k-mpls-px-5.2.2 disk0:asr9k-doc-px-5.2.2 disk0:asr9k-services-px-5.2.2 disk0:asr9k-li-px-5.2.2 disk0:asr9k-bng-px-5.2.2 disk0:asr9k-asr901-nV-px-5.2.2 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 4 detail
# Any configuration that is removed due to changing IOS version can be seen with
(admin)# show configuration removed
# Now activate the packages with the test keyword
RP/0/RSP0/CPU0:router(admin)# install activate disk0:asr9k-services-infra-5.2.2 disk0:asr9k-k9sec-px-5.2.2 disk0:asr9k-asr903-nV-px-5.2.2 disk0:asr9k-mgbl-px-5.2.2 disk0:asr9k-mcast-px-5.2.2 disk0:asr9k-fpd-px-5.2.2 disk0:asr9k-video-px-5.2.2 disk0:asr9k-9000v-nV-px-5.2.2 disk0:asr9k-optic-px-5.2.2 disk0:asr9k-mpls-px-5.2.2 disk0:asr9k-doc-px-5.2.2 disk0:asr9k-services-px-5.2.2 disk0:asr9k-li-px-5.2.2 disk0:asr9k-bng-px-5.2.2 disk0:asr9k-asr901-nV-px-5.2.2 sync
# Check to see if there were any failed startup config
(admin)# show configuration failed startup
# Verify system stability.
# verify that all Nodes are in “IOS XR RUN” state, SPAs 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 activ
(admin)# show install active
# verify/fix configuration file system in exec and admin mode
(admin)# cfs check
(admin)# clear configuration inconsistency
# Commit the newly activated software and verify:
RP/0/RSP0/CPU0:router (admin)# install commit
RP/0/RSP0/CPU0:router (admin)# show install committed summary
# Check for which firmware files need to be upgraded:
RP/0/RSP0/CPU0:router(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
RP/0/RSP0/CPU0:router1(admin)#conf
RP/0/RSP0/CPU0:router1(admin-config)#fpd auto-upgrade
RP/0/RSP0/CPU0:router1(admin-config)#commit
RP/0/RSP0/CPU0:router(admin)# show hw-module fpd location all
RP/0/RSP0/CPU0:router(admin)#show fpd package
RP/0/RSP0/CPU0:router(admin)#upgrade hw-module fpd all location all
# If you disabled disk mirroring re-enable it.
# Clean up.
# To obtain a list of inactive packages and note the names of packages that are not needed:
RP/0/RSP0/CPU0:router(admin)# show install inactive summary
# Remove the unnecessary inactive packages
RP/0/RSP0/CPU0:router(admin)# install remove disk0:package1 disk0:package2 sync
or
RP/0/RSP0/CPU0:router(admin)# install remove inactive sync
Previous page: ASR9001 4.3.4 Package and Patch Installation Example
Next page: ASR9001 - Erase and fresh install via ROMMON