In this post we will see how to upgrade prime using its command line interface (CLI). You can use GUI as well, but it is much quicker if you could upload the patch/upgrade files onto local FTP server & then apply it onto prime. You can use “show version” CLI command to verify current prime version.
primedev/admin# show 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: primedev Version information of installed applications --------------------------------------------- Cisco Prime Network Control System ------------------------------------------ Version : 1.4.0.45 Patch: Cisco Prime Network Control System Version: Update-1_16_for_version_1_4_0_45
We will use this to upgrde to PI 1.4.1 (patch PI_1.4_0_45_Update_1-39.tar.gz) to support new 3700 series AP. You can download these patches from the software section of PI in CCO page as shown below. You also need to check the release notes (Here is 1.4.1 release notes) to make sure your upgrade path is correct & its compatibility with other products.
You can upload these patches or upgrade images to a repository on your prime. There is default repository called “defaultRepo” . I have created a separate repository called “localftp” & create a username password like “admin/Cisco123?
primedev/admin(config)# repository ? <WORD> Repository name (Max Size - 80) primedev/admin(config)# repository localftp primedev/admin(config-Repository)# ? Configure Repository: do EXEC command end Exit from configure mode exit Exit from this submode no Negate a command or set its defaults url Configure Repository URL user Configure repository username and password for access primedev/admin(config-Repository)# url disk:/ftp primedev/admin(config-Repository)# user ? <WORD> Username for repository access (Max Size - 30) primedev/admin(config-Repository)# user admin ? password Configure repository password for access primedev/admin(config-Repository)# user admin password ? hash Specifies an ENCRYPTED (hashed) password will follow plain Specifies an UNENCRYPTED plain text password will follow primedev/admin(config-Repository)# user admin password plain ? <WORD> Plain text password for repository access (Max Size - 40) primedev/admin(config-Repository)# user admin password plain Cisco123 primedev/admin(config-Repository)# exit primedev/admin(config)# exit primedev/admin# write memory Generating configuration...
You can create username & password for FTP access using the below command. There is default FTP user called “ftp-user” also there if you like to use it.
rimedev/admin# ncs password ?
ftpuser Modifies ftp username and password
root Modifies root user login password
primedev/admin# ncs password ftpuser ?
<WORD> Type in the username (Max Size - 80)
primedev/admin# ncs password ftpuser admin ?
password Modifies ftp password
primedev/admin# ncs password ftpuser admin password ?
<WORD> Type in the ftp password (Max Size - 80)
primedev/admin# ncs password ftpuser admin password Cisco123
Initializing...
Updating FTP password.
This may take a few minutes...
Successfully updated location ftp user
Now using any FTP client you can connect to this FTP server to upload the patch file. I have used Filezila client which is freely available from here. You can use the “admin/Cisco123? user credential connect to prime FTP server as shown below.
Then you can drag & drop the required patch file onto PI repository you created as shown below.
Once copied you can verify using “show repository <Repository_Name>” command as shown below.
primedev/admin# show repository localftp PI_1.4_0_45_Update_1-16.tar.gz PI_1.4_0_45_Update_1-39.gz
Then you can install patch using the “patch install <filename> <repository_name>” CLI command as shown below. It may take few minutes (depend on the upgrade) & you should see the successful patch information message at the end.
primedev/admin# patch install ? <WORD> Patch bundle file name (Max Size - 255) primedev/admin# patch ? install Install a Patch Bundle remove Uninstall An Application Patch primedev/admin# patch install ? <WORD> Patch bundle file name (Max Size - 255) primedev/admin# patch install PI_1.4_0_45_Update_1-39.gz ? <WORD> Name of the configured remote repository (Max Size - 255) primedev/admin# patch install PI_1.4_0_45_Update_1-39.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
If it is software upgrade with upgrade bundle, then you have to use “application upgrade <upgradebundle_filename> <repository_name>” command
primedev/admin# application ?
install Install An Application Bundle
remove Uninstall An Application
reset-config Reset application configuration to factory defaults
start Start an Application
stop Stop an Application
upgrade Upgrade An Application Bundle
primedev/admin# application upgrade ?
<WORD> Application bundle file name (Max Size - 255)
primedev/admin# application upgrade <PI_Upgrade_bundle> ?
<WORD> Name of the configured remote repository (Max Size - 255)
primedev/admin# application upgrade <PI_Upgrade_bundle> <repository_name>
You can verify the version with “show version” or “show application version NCS” command.
primedev/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: primedev Version information of installed applications --------------------------------------------- Cisco Prime Network Control System ------------------------------------------ Version : 1.4.0.45 Patch: Cisco Prime Network Control System Version: Update-1_39_for_version_1_4_0_45 Patch: Cisco Prime Network Control System Version: Update-1_16_for_version_1_4_0_45 **** OR **** primedev/admin# show application ? > Output Redirection. status Show Application status Information version Show Application Version Information | Output modifiers. <cr> Carriage return. primedev/admin# show application version ? <WORD> Application name for version (Max Size - 255) primedev/admin# show application version ncs <- lowerecase not working % Error finding version information for the application: ncs primedev/admin# show application version NCS Cisco Prime Network Control System ------------------------------------------ Version : 1.4.0.45 Patch: Cisco Prime Network Control System Version: Update-1_39_for_version_1_4_0_45 Patch: Cisco Prime Network Control System Version: Update-1_16_for_version_1_4_0_45
Here is some other useful CLI commands you can use with this product.
primedev/admin# show application status NCS Health Monitor Server is running. Reporting Server is running Ftp Server is running Database server is running Tftp Server is running Matlab Server is running NMS Server is running. SAM Daemon is running ... DA Daemon is running ... Syslog Daemon is running ... status primedev/admin# show logins cli admin pts/0 131.172.70.180 Sun Jan 12 12:25 still logged in admin pts/0 131.172.70.180 Sun Jan 12 10:43 - 12:15 (01:32) admin pts/0 131.172.70.180 Sat Jan 11 10:35 - 11:05 (00:30) wtmp begins Sat Jan 11 10:35:13 2014 primedev/admin# show running-config Generating configuration... hostname primedev ip domain-name latrobe.edu.au ! interface GigabitEthernet 0 ip address 10.129.0.6 255.255.254.0 ipv6 address autoconfig ! ip name-server x.x.x.2 x.x.x.1 ip default-gateway 10.129.1.250 clock timezone Australia/Melbourne ntp server x.x.x.x ! username admin password hash $1$l3Q9q2Zv$g7QRjguS.VJ8TuBlpSRww1 role admin service sshd ! repository defaultRepo url disk:/defaultRepo repository localftp url disk:/ftp user admin password hash 74a43cee8d45b06fab03e0c57149222938d8f3a9 ! password-policy lower-case-required digit-required no-username ! logging x.x.34.118:50003 logging loglevel 6 ! cdp timer 60 cdp holdtime 180 cdp run GigabitEthernet 0 icmp echo on primedev/admin# show udi SPID: Cisco-VM-SPID VPID: V01 Serial: PDEBFHIEJAG primedev/admin# show ports Process : portmap (3504) tcp: 0.0.0.0:111 udp: 0.0.0.0:111 Process : Decap_main (28033) tcp: 127.0.0.1:2000 udp: 0.0.0.0:514, 0.0.0.0:162 Process : Xvfb (27791) tcp: 0.0.0.0:6100, :::6100 Process : rpc.statd (3549) tcp: 0.0.0.0:763 udp: 0.0.0.0:757, 0.0.0.0:760 Process : sam_daemon (28493) tcp: 0.0.0.0:2012 udp: 127.0.0.1:24336 Process : java (28690) tcp: :::8009, :::48238, :::8080, :::16113, :::2001, ::ffff:10.129.0.6:61617, :::61237, :::8090, :::443 udp: :::9991, :::14221, :::48909, :::52322 Process : java (27061) tcp: :::5001, :::8082 Process : java (27793) tcp: :::20555 Process : java (27360) tcp: :::20556, :::1199, :::9745, :::1299 udp: :::18773 Process : java (27491) tcp: :::20558, :::21 Process : java (27674) tcp: :::20559 udp: :::69, :::29001, :::29002, :::29003, :::29004, :::29005 Process : tnslsnr (27101) tcp: :::1522 Process : sshd (3929) tcp: :::22 Process : rsyslogd (28391) udp: 0.0.0.0:514, :::514 Process : ntpd (3910) udp: 10.129.0.6:123, 127.0.0.1:123, 0.0.0.0:123, fe80::250:56ff:feb9:123, ::1:123, :::123 Process : ora_pmon_wcs (27199) udp: ::1:11838 Process : ora_mmon_wcs (27228) udp: :::17770