Tuesday, November 1, 2016

Turboboot ASR 9001-S and Installing IOS-XR code 5.3.3 with SP3

Here are my notes on Turbobooting a Cisco ASR 9001-S.  I choose to turboboot  this router because it had been in a lab environment and there was no space left on disk0: to stage new code or PIE's.  This allowed for a clean re-install of IOS-XR version 5.3.3 (with SP3) on disk0:.  Two alternatives to doing a turboboot when your disk0: is full are the following, however you may end up needing to use both.
  1. Use the harddisk: to stage new code (you will still need space on disk0:, but not as much as staging and installing on the same media).  You should avoid copying the entire TAR file over to the router.  You can actually even install from a TAR file over TFTP however I like to have the actual PIEs on the harddisk just for backup.
  2. Use  # admin install remove, to remove older code versions

To get ready to Turboboot the ASR 9001-S, I connected my laptop to the Mgmt0 port, disabled my Firewall software, and enabled my Tftp64 software.  You will need to configure your NIC to be on the same network as you end up configuring your Mgmt0 port of the ASR in the following steps. 

I basically followed the steps laid out by Xander Thuijs at the following link:
https://supportforums.cisco.com/document/123576/asr9000xr-understanding-turboboot-and-initial-system-bring

Turboboot Procedure:
  • Connect a console to the ASR 9001-S and power on.  When you see the following message, hit <Ctrl>C
...
MBI validation sending request.

HIT CTRL-C to abort

  • Once you are in ROMMON mode, enter the following commands:
rommon B1 > unset TFTP_FILE
rommon B2 > sync
rommon B3 > unset BOOT_DEV_SEQ_OPER
rommon B4 > priv
rommon B5 > diswd

The following IP address info is to configure the Mgmt interface on the Cisco ASR router:
rommon B6 > IP_ADDRESS=10.1.1.7
rommon B7 > IP_SUBNET_MASK=255.255.255.0
rommon B8 > DEFAULT_GATEWAY=10.1.1.1

rommon B9 > TFTP_RETRY_COUNT=4
rommon B10 > TFTP_TIMEOUT=6000
rommon B11 > TFTP_CHECKSUM=1
rommon B12 > TFTP_SERVER=10.1.1.17
rommon B13 > TFTP_MGMT_INTF=0

I had to use this exact TFTP Blocksize to get the TFTP to work:
rommon B14 > TFTP_BLKSIZE=1024
rommon B15 > TURBOBOOT=on,disk0,format
rommon B16 > sync

The "set" rommon command will show you the output of your config:

 

rommon B21 > set
PS1=rommon ! >
 
IOX_ADMIN_CONFIG_FILE=

ACTIVE_FCD=1

BSI=0
CLUSTER_NO_BOOT=
BOOT_DEV_SEQ_CONF=
IP_ADDRESS=10.1.1.7
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=10.1.1.1
TFTP_RETRY_COUNT=4
TFTP_TIMEOUT=6000
TFTP_CHECKSUM=1
TFTP_SERVER=10.1.1.17
TFTP_MGMT_INTF=0
TFTP_BLKSIZE=1024
TURBOBOOT=on,disk0,format
 
 
 
  • Finally, boot the router using the VM image.  This VM image is found by downloading the Turboboot TAR file from CCO.
 
rommon B22 > boot tftp:/asr9k-mini-px.vm-5.3.3
The router will then TFTP the file, loading and installing it from RAM, then it will copy the image to disk0:, finally it will reboot.  Once it comes back up there will still be some work to do ;-)
 
The Turboboot process above only installs the base 5.3.3 packages.  You will still need to complete the following steps:
 
Remaining Steps Overview
 
  • Install PIEs
  • Activate PIEs
  • Upgrade FPD Hardware
  • Install Service Pack 3 for 5.3.3
 
Procedure to Install IOS-XR 5.3.3
 
Using a Windows PC, I uncompressed the IOS-XR 5.3.3 TAR file onto a USB drive and inserted this in the ASR 9001-S router.  It showed up as disk1: on the ASR.
 
  • Copy the PIE files over to disk0: on the ASR.  You will need to confirm each PIE file for copy, so I only confirmed which ones I needed.
# copy disk1:/5.3.3/* disk0:
  • Install and Activate the PIEs.  Below, insert the pie filename that you need to install and activate (ex. asr9k-fpd-px.pie-5.3.3).
# admin install add source /disk0: <pie_filename> <pie_filename> activate
  • You can use the following command to monitor the status of the install request and see the percentage of completion.
# admin show install request
 
  • Commit the installation once completed.
# admin install commit
 
  • Command to confirm install and commit success.
# admin show install summary
 
Procedure to Upgrade FPD
 
  •  Issue the following command to see if an FPD upgrade is required. 
# admin show hw-module fpd location all

  • Issue the following command to upgrade all required FPDs
# admin upgrade hw-module fpd all location all
  • Once complete, not all of my FPDs showed that they were actually upgrades, but after I reloaded the router, they all showed as updated.
# reload location all

Procedure to Upgrade to SP3
  • Command to install and activate SP3 for IOX-XR version 5.3.3.  I learned a lesson here on this one by not using the "sync" command on my first doing this.  If you do not include the "sync" command, it defaults to asynchronous  mode which means it gives you the command prompt back while the install runs in the background.  Problem is that the install prompts you to answer a question of whether to continue or not, so if you don't answer, the install will not complete.  The following commands can help in this situation:
    • # show install request    [To show the progress of an install request - if the % is not incrementing, it may be stalled waiting for a response]
    • # show install request detail  [Shows useful message as to why the an install is stalled, told me to run the following command]
    • # admin install operation <install_ID> attach synchronous  [Attaches sync mode to the install and re-asks the prompted question to allow you to continue the install script]

  • Initial the Service Pack Upgrade
# admin install add source disk0: asr9k-px.5.3.3.sp3.pie activate sync
  • This install will cause the router to reboot. When you log back in, you can run the following to see if the router has come all the way back up yet or not.  CPUs should say "IOS XR RUN" and other devices should say "READY" or "OK".
# admin show platform
  • Commit the Install.
# admin install commit

Other Useful Commands
# admin show install request      [To monitor the progress of an install]
# admin show install summary      [To see what is install and active, inactive, and committed]
# admin show install log
# show filesystem
# show media
# clear configuration inconsistency  [To assist with clearing a failed or aborted install]

1 comment: