Thursday, November 21, 2013

Upgrading Cisco Prime 1.2 to 3.0

I am writing this for myself and anyone else that might be upgrading your Cisco Prime Infrastructure (PI) in the future.  After doing all the research, I discovered I needed to first patch our PI and make backups.

 

Not knowing which day I was going to do the upgrade, I decided to configure PI to back itself up daily so I would always have a fresh backup and not have to wait to create one if I decided to the upgrade that day.

 

I browsed here:  Administration  >  Background Tasks >  Other Background Tasks  >  Prime Infrastructure Server Backup

 

I created a backup repository and configured it to do daily backups at 03:30 in the morning.

 

 

Next step was to copy the patches to PI.  I downloaded these two files from CCO:  pi_1.2.1.12_update.tar.gz  and  PI_1_2_1_12u-Update.1.tar.gz

 

I figured I would use WinSCP, so I tried to login with the file protocol = SCP and my root credentials and was denied.  Bummer.  Something about an incompatible version.  Next I tried FTP, but now my credentials were not working.  Research showed that I needed to create an FTP account on PI.

 

I logged in via SSH and created an FTP account.  Here’s how: (FTP Username – “ftpaccount”, password = My8l0gpw0rD

 

CiscoPI/admin# ncs password ftpuser ftpaccount password My8l0gpw0rD

 

Initializing...

Updating FTP password.

This may take a few minutes...

Successfully updated location ftp user

CiscoPI/admin#

 

That was all it took to create the FTP account.  Now I used WinSCP to copy the two patch files to PI from my workstation.

 

 

 

Now that the patches are in PI, verify they are there and then run them.

 

CiscoPI/admin# show repository localftp

Backup_ciscopi01_130926_010000.lsbackup

Backup_ciscopi01_131001_010000.lsbackup

PI_1_2_1_12u-Update.1.tar.gz

pi_1.2.1.12_update.tar.gz

 

CiscoPI/admin# patch install PI_1.2.1.12u_update.tar.gz localftp

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

 

CiscoPI/admin# patch install pi_1.2.1.12_update.tar.gz localftp

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

CiscoPI/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: CiscoPI

 

Version information of installed applications

---------------------------------------------

Cisco Prime Network Control System

------------------------------------------

Version : 1.2.1.012

Patch: Update for Prime Infrastructure 1.2.0 - backup,restore,upgrade improvements Version: 1.2.1.12

Patch: PI Patch - includes backup, restore and upgrade related updates Version: 1.2.1.13

CiscoPI/admin

 

A month passed and the decision was made to try an “inline upgrade” – which is basically copying the PI 2.0 software to the virtual machine and executing an upgrade.  We went with this way for a variety of reasons.  I had read that the best was to backup your existing PI, create a new VM with the PI 2.0 OVA and restore your backup into that VM.  I had also read about some inline upgrades that were having disk space issues, but decided to try it anyway.

 

This time I used the 3CDaemon TFTP/FTP application to FTP the upgrade file to PI.  The application is free, and I have had a much luck with it over the years.   If you haven’t used it, you’ll need to download and install it, and then run the application.  Click on FTP Server and create a username and password – you will need this for PI to login to your FTP server app.

 

 

Now log back into your PI via SSH and copy the upgrade file from your FTP application.  Here is a line by line step, with output, comments and commands in red:

 

copy ftp://10.10.20.50/PI-Upgrade-2.0.0.0.294.tar.gz disk:/defaultRepo

Username: <from FTP app>

Password:  <from FTP app>

<the FTP server is now transferring the upgrade file.  Be patient>

CiscoPI/admin#  

 

<Verify file is where you told it to go>

 

CiscoPI/admin# dir disk:/defaultRepot

 

Directory of disk:/defaultRepo

1700049411 Nov 12 2013 18:01:45  PI-Upgrade-2.0.0.0.294.tar.gz  <Here’s the file you just transferred.  Looks right>

 

           Usage for disk: filesystem

                74685308928 bytes total used

                42612486144 bytes free

                123677184000 bytes available

 

<Now shutdown NCS and run the upgrade>

 

CiscoPI/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

<now run the upgrade>

CiscoPI/admin# application upgrade PI-Upgrade-2.0.0.0.294.tar.gz defaultRepo

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.

 

<These steps took over 12 hours.  Be patient.  I thought it was stuck, so I went home and let it run all night and was pleasantly surprised the next morning>

 

  -- 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: 2013-11-12 19:20:50.923

, Time Taken : 0 hr, 5 min, 31 sec

                  Stage 2 of 5: Schema Upgrade ...

                                : This could take long time based on the existing data size.

                                        -- completed at: 2013-11-12 19:43:22.763

, Time Taken : 0 hr, 22 min, 31 sec

                  Stage 3 of 5: Post Migration Schema Upgrade ...

                                        -- completed at: 2013-11-13 01:14:27.926

, Time Taken : 5 hr, 31 min, 5 sec

                  Stage 4 of 5: Enabling DB Constraints ...

                                        -- completed at: 2013-11-13 04:16:54.362

, Time Taken : 3 hr, 2 min, 21 sec

                  Stage 5 of 5: Finishing Up ...

                                        -- completed at: 2013-11-13 04:17:22.815

, Time Taken : 0 hr, 0 min, 28 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/0) (Wed Nov 13 04:24:36 2013):

 

The system is going down for reboot NOW!

 

Application upgrade successful

CiscoPI/admin#

 

<Now you are finished.  Don’t forget to upgrade your MSE if you have one>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4 comments:

  1. Did you ever make it to 3.0 code? Cisco TAC told me a new VM is required from 2.1 to 2.2. I was wondering if an inline worked for you?

    ReplyDelete
  2. Recently (attempted) an upgrade from 2.2 to 3.0. As suggested on other sites, I recommend starting with new 3.0 ova install. Had I not cloned my VM prior to the upgrade I would be in quite a predicament.

    ReplyDelete
  3. You will find a lot of approaches after visiting your post.Thanks for sharing the such information with us to read this...

    girls dresses

    ReplyDelete