Prime Infrastructure 1.3 to 2.1 Upgrade

Today I upgraded my Cisco prime infrastructure from 1.3 to 2.1 via Command line.

Before start, we must first go through the Quick Start Guide of PI 2.1: Guide link for PI2.1 and also don’t forget to check this section in start guide: Upgrading Cisco Prime Infrastructure

We can upgrade the following Cisco Prime Infrastructure (and predecessor) products to Cisco Prime Infrastructure 2.1:

  • Cisco Prime Infrastructure 2.0.0.0.294
  • Cisco Prime Infrastructure 1.3.0.20

*** We can upgrade from 2.0.0.294 or 1.3.0.20 with the point patch to PI 2.1, but still no path from 1.4.

We have PI version 1.3.0.20, so as per the guide we must upgrade the patch (PI_1_3_0_20-Update.4-16.tar.gz) first and then we can go ahead with software up-gradation.

*** Download all required files (Patch, new update installer) and put in root directory for FTP or TFTP server.

  • Patch (PI_1_3_0_20-Update.4-16.tar.gz)
  • Update Installer (PI-Upgrade-2.1.0.0.87.tar.gz)

Patch download:

PI1

PI 2.1 Update installer downloads:

PI2

Put both these files in FTP (10.35.20.7) root Directory:

PI3

I copied these files in my Repository:

PI/admin# sh repository PIbackup
 PI_1_3_0_20-Update.4-16.tar.gz
 PI-Upgrade-2.1.0.0.87.tar.gz
 PI/admin#

Here is upgrade procedure:

  1. First we must check the version running of Prime infrastructure.

Here’s how we can check our version of NCS/PI:

PI/admin# sh version
 Cisco Application Deployment Engine OS Release: 2.0
 ADE-OS Build Version: 2.0.1.038
 ADE-OS System Architecture: x86_64
 Copyright (c) 2005-2010 by Cisco Systems, Inc.
 All rights reserved.
 Hostname: PI
 Version information of installed applications
 ---------------------------------------------
 Cisco Prime Network Control System
 ------------------------------------------
 Version : 1.3.0.20
PI/admin# sh application version NCS
 Cisco Prime Network Control System
 ------------------------------------------
 Version : 1.3.0.20
  1. Check the repository configuration
repository PIbackup
 url ftp://10.35.20.7
 user ftp123 password hash d07b045515f87737dcbd251a149028d2cfe9c62a
  1. So now we stop NCS process.
PI/admin# NCS stop
 Stopping Network Control System...
 This may take a few minutes...
 Network Control System successfully shutdown.
 SAM daemon process id does not exist
 DA daemon process id does not exist
 DA syslog daemon process id does not exist
 stop
PI/admin#
  1. Install the point patches on Cisco Prime Infra 1.3.

Before attempting to upgrade to 2.1, make sure that we download the appropriate patch (PI_1_3_0_20-Update.4-16.tar.gz) and then install it using this command:

Patch install <patch file name><repository name>

It will take around 2-4 minutes, depends on the file size and finally you will see like this “Patch successfully installed”.

PI/admin# patch install PI_1_3_0_20-Update.4-16.tar.gz PIbackup
 Save the current ADE-OS running configuration? (yes/no) [yes] ? yes
 Generating configuration...
 Saved the ADE-OS running configuration to startup successfully
 Initiating Application Patch installation...
 Patch successfully installed

Once we have installed the appropriate patches, we will also need to take a new application backup before performing a system migration or inline upgrade.

  1. Take the backup of Application before upgrade by using this command:

Backup <filename> repository <repository name> application NCS

Start the NCS process again and then we will start with backup:

PI/admin# NCS start
 Starting Network Control System...
 This may take a few minutes...
 Network Control System started successfully.
 start
PI/admin# backup b4UpgrToPI2.1 repository PIbackup application NCS
 % Creating backup with timestamped filename: b4UpgrToPI2.1-140819-1200.tar.gpg
 /opt partition space looks good proceeding with backup
 /
 Stage 1 of 7: Database backup ...
 -- complete.
 Stage 2 of 7: Database copy ...
 -- complete.
 Stage 3 of 7: Backing up support files ...
 -- complete.
 Stage 4 of 7: Compressing backup ...
 -- complete.
 Stage 5 of 7: Building backup file ...
 -- complete.
 Stage 6 of 7: Encrypting backup file ...
 -- complete.
 Stage 7 of 7: Transferring backup file ...
 -- complete.
 PI/admin#
  1. Stop NCS process again and Start upgrading
PI/admin# NCS stop
 Stopping Network Control System...
 This may take a few minutes...
 Network Control System successfully shutdown.
 SAM daemon process id does not exist
 DA daemon process id does not exist
 DA syslog daemon process id does not exist
 stop
 PI/admin#

Now real stuff starts for up-gradation:

Run this command:

Application upgrade <new upgrade bundle name> <repository name>

PI/admin# application upgrade PI-Upgrade-2.1.0.0.87.tar.gz PIbackup
 Save the current ADE-OS running configuration? (yes/no) [yes] ? yes
 Generating configuration...
 Saved the ADE-OS running configuration to startup successfully
 Initiating Application Upgrade...
 Stage 1 of 7: Transferring file ...
 -- complete.
 Stage 2 of 7: Unpacking file ...
 -- complete.
 Stage 3 of 7: Executing pre-install ...
 [WARNING] System will reboot after a successful installation of this package (after Stage 7).
 After reboot, please login again into the server to check status.
 No action required at this time. Continuing with Stage 3.
 -- complete.
 Stage 4 of 7: Upgrading binaries ...
 -- complete.
 Prime Infrastructure Application installation completed
 Stage 5 of 7: Retrieving system version ...
 -- complete.
 Stage 6 of 7: Updating Database Schema ...
 : This could take long time based on the existing data size.
 Stage 1 of 5: Pre Migration Schema Upgrade ...
 -- completed at: 2014-08-19 12:57:30.008, Time Taken : 0 hr, 1 min, 2 sec
 Stage 2 of 5: Schema Upgrade ...
 : This could take long time based on the existing data size.
 -- completed at: 2014-08-19 13:11:14.476, Time Taken : 0 hr, 13 min, 44 sec
 Stage 3 of 5: Post Migration Schema Upgrade ...
 -- completed at: 2014-08-19 14:02:08.52, Time Taken : 0 hr, 50 min, 54 sec
 Stage 4 of 5: Enabling DB Constraints ...
 -- completed at: 2014-08-19 14:12:36.087, Time Taken : 0 hr, 10 min, 24 sec
 Stage 5 of 5: Finishing Up ...
 -- completed at: 2014-08-19 14:12:50.981, Time Taken : 0 hr, 0 min, 14 sec
 -- complete.
 Stage 7 of 7: Re-enabling Database Settings ...
 -- complete.
 Upgrade Finished. Server is  restarting . Please wait ..
 % This application Install or Upgrade requires reboot, rebooting now...
 Broadcast message from root (pts/1) (Tue Aug 19 14:16:24 2014):
 The system is going down for reboot NOW!
 Application upgrade successful
 PI/admin#
  1. Now we must restart NCS.

See the status after upgrade:

 PI/admin# ncs status
 Health Monitor is stopped.
 Ftp Server is Stopped
 Database server is stopped
 Tftp Server is Stopped
 Matlab Server is Stopped
 NMS Server is stopped.
 Start of Prime Infrastructure pending for Plug and Play Gateway.
 SAM Daemon is not running ...
 DA Daemon is not running ...
 Syslog Daemon is not running ...
 PI/admin#
PI/admin# NCS status
 Health Monitor is stopped.
 Ftp Server is Stopped
 Database server is stopped
 Tftp Server is Stopped
 Matlab Server is Stopped
 NMS Server is stopped.
 Start of Prime Infrastructure pending for Plug and Play Gateway.
 SAM Daemon is not running ...
 DA Daemon is not running ...
 Syslog Daemon is not running ...
PI/admin# NCS start
 Starting Network Control System...
 This may take a few minutes...
 login as: admin
 Using keyboard-interactive authentication.
 Password:
 PI/admin#
  1. Verification
PI/admin# sh version
 Cisco Application Deployment Engine OS Release: 2.0
 ADE-OS Build Version: 2.0.6.003-px-build
 ADE-OS System Architecture: x86_64
 Copyright (c) 2005-2010 by Cisco Systems, Inc.
 All rights reserved.
 Hostname: PI
 Version information of installed applications
 ---------------------------------------------
 Cisco Prime Infrastructure
 ------------------------------------------
 Version : 2.1.0.0.87
 PI/admin#
PI/admin# sh application version NCS
 Cisco Prime Infrastructure
 ------------------------------------------
 Version : 2.1.0.0.87
 PI/admin#

Application status:

PI/admin# sh application status NCS
 Health Monitor Server is running.
 Ftp Server is running
 Database server is running
 Tftp Server is running
 Matlab Server is running
 NMS Server is running.
 Plug and Play Gateway is running.
 SAM Daemon is running ...
 DA Daemon is running ...
 Syslog Daemon is running ...
 PI/admin#

Main page of new PI 2.1:

PI4

More link:

Patch Install:

Steps to Install Update Patch for Prime Infrastructure 2.0

If you are facing disk space problem then check these posts:

Adding Disk Space to Prime Infrastructure

Increasing disk space on Cisco Prime Infrastructure

 

Advertisements