For the latest upgrade documents please refer to the following page:
http://www.cisco.com/web/Cisco_IOS_XR_Software/index.html
This is an abbreviated version of the upgrade procedures.
1. Check system stability
The following commands should be executed to verify basic system stability before the upgrade/downgrade:
(admin)# show platform [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 redundancy[verify that Active & Standby RSP are available and in “ACTIVE role” & “is ready” states]
(admin)# show interface summary [verify that all interfaces are "UP"]
(admin)# show install active [verify that the proper set of packages are active]
(admin)# cfs check
(admin)# clear configuration inconsistency [verify/fix configuration file system in exec and admin mode]
Before upgrade/downgrade, check for the tftp reachability
2. Pre-upgrade tasks
(admin)# show filesystem | inc disk0: [make sure you have enought disk space to perform the upgrade. A minimum 500MB free disk0: disk space is required for the upgrade.]
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
3. Verify Mgmt LAN access to the router
- RP/0/RSP0/CPU0:router# ping x.x.x.x
4. 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
5. Disable disk mirroring. Disk mirroring can increase upgrade time. Enable disk mirroring after upgrading the IPS XP.
6. Add the required pies to disk(here I am adding all the pies, add what you need to add). The use of ‘sync’ option will prevent the user from executing any other command during the
install operation, and is recommended.
You can add all the pies with a single command
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 generated errors so I added each pie indvidually
install add tftp://172.16.1.99/asr9k-mini-p.pie-4.1.2 sync
install add tftp://172.16.1.99/asr9k-upgrade-p.pie-4.1.2 sync !NOTE use the upgrade pie for versions rpior to 4.0.0 or you will get an error and have to remove the pie before you can continue.
install add tftp://172.16.1.99/asr9k-mcast-p.pie-4.1.2 sync
install add tftp://172.16.1.99/asr9k-mgbl-p.pie-4.1.2 sync
install add tftp://172.16.1.99/asr9k-mpls-p.pie-4.1.2 sync
install add tftp://172.16.1.99/asr9k-k9sec-p.pie-4.1.2 sync
install add tftp://172.16.1.99/asr9k-video-p.pie-4.1.2 sync
install add tftp://172.16.1.99/asr9k-doc-p.pie-4.1.2 sync
install add tftp://172.16.1.99/asr9k-optic-p.pie-4.1.2 sync
NOTE: if you choose to use the sync command after each line you will have to wait for the pie to be installed before you can run the next install command.
This process while take a while(up to 35 minutes).
Use ‘show install request’ to see the state of the current install.
Once completed yopu will get a message on the screen:
Install operation 46 completed successfully
7. List the inactive packages list using ‘show install inactive summary’
RP/0/RSP0/CPU0:router(admin)# show install inactive summary
Default Profile:
SDRs:
Owner
Inactive Packages:
disk0:asr9k-mini-p-4.1.1
disk0:asr9k-upgrade-p-4.1.1
disk0:asr9k-mcast-p-4.1.1
disk0:asr9k-mgbl-p-4.1.1
disk0:asr9k-mpls-p-4.1.1
disk0:asr9k-video-p-4.1.1
disk0:asr9k-k9sec-p-4.1.1
disk0:asr9k-optic-p-4.1.1
disk0:asr9k-doc-p-4.1.1
- Using the list of inactive packages select and test the activation using the
RP/0/RSP0/CPU0:router(admin)# install activate disk0:asr9k-mini-p-4.1.1 disk0:asr9kupgrade-
p-4.1.1 disk0:asr9k-doc-p-4.1.1 disk0:asr9k-mcast-p-4.1.1 disk0:asr9k-mgbl-p-4.1.1
disk0:asr9k-k9sec-p-4.1.1 disk0:asr9k-mpls-p-4.1.1 asr9k-video-p-4.1.1 asr9k-optic-p-4.1.1
sync test
No actual changes will be made when ‘test’ option is used.
- ‘show configuration removed’ command can be used to view what will be removed as result of the
software upgrade. Removed config can be reapplied using the ‘load config removed .cfg’
command from config mode after the upgrade has been completed.
8. Activate inactive packages added in step 6 using command:
RP/0/RSP0/CPU0:router (admin)# install activate disk0:asr9k-mini-p-4.1.1 disk0:asr9kupgrade-
p-4.1.1 disk0:asr9k-doc-p-4.1.1 disk0:asr9k-mcast-p-4.1.1 disk0:asr9k-mgbl-p-4.1.1
disk0:asr9k-k9sec-p-4.1.1 disk0:asr9k-mpls-p-4.1.1 asr9k-video-p-4.1.1 asr9k-optic-p-4.1.1
sync
- you can also use this command after step 6:
RP/0/RSP0/CPU0:router (admin)# install activate id 46 sync
NOTE:The Router will reload at the end of activation to start using the new packages. This reload
operation will impact traffic for small duration. This will take about 20 minutes.
9. Check to see if there were any failed startup config.
RP/0/RSP0/CPU0:router# show configuration failed startup
10. Verify system stability.
(admin)# show platform [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 redundancy[verify that Active & Standby RSP are available and in “ACTIVE role” & “is ready” states]
(admin)# show interface summary [verify that all interfaces are "UP"]
(admin)# show install active [verify that the proper set of packages are active]
(admin)# cfs check
(admin)# clear configuration inconsistency [verify/fix configuration file system in exec and admin mode]
11. 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
12. 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
from 4.0.1 to 4.1.1
- 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
13. If you disabled disk mirroring in step 5 re-enable it.
14. 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:disk0: .. disk0: sync
or
RP/0/RSP0/CPU0:router(admin)#install remove inactive sync