Cisco Cisco Prime Unified Provisioning Manager 9.0 Installation Guide

Page of 54
47
 
Restoring Provisioning Manager
To restore Provisioning Manager from a backup: 
Step 1
Stop Apache, JBoss, and NICE services by entering the following commands: 
ps -aef | grep startcupm 
ps -aef | grep nice
 
kill
 
startcupm process-id
kill
 
nice-process-id
Step 2
Enter the following command to navigate to the /opt/postgres/9.0/bin directory: 
cd /opt/postgres/9.0/bin
Step 3
Enter the following command: 
./psql.bin -U 
pmadmin
 -d postgres
where 
pmadmin
 is the username.
Step 4
Enter the following command: 
DROP DATABASE
 
cupm
 
where 
cupm
 is the database. 
If you receive an error stating that the database is being accessed by other users, perform the following steps: 
a. Enter 
\q
 to exit the PostgreSQL terminal. 
b. Enter the following commands:
ps -aef
kill </opt/cupm/jvm/bin/java -server -classpath /opt/cupm/sep/lib/dom.jar:/opt/cupm/sep/lib/jaxb-    
api.jar:/opt/cupm/sep/lib/jaxb-impl.jar>
c. Return to 
 to resume restoring Provisioning Manager from the backup.
Step 5
Enter the following command: 
DROP ROLE
 
rolename
 
where 
rolename
 is username for the SEP database user. The default username is cupm. 
Step 6
Enter the following command: 
ALTER ROLE
 
username
 WITH PASSWORD ‘
password
’; 
where 
username
 is username of the PostgreSQL administrator user, and 
password
 is the password for the PostgreSQL 
administrator on the machine with the backed-up data. The default username is postgres. 
Step 7
Enter 
\q
 to exit the PostgreSQL terminal.
Step 8
Navigate to the directory /opt/postgres/9.0/bin and enter the following command:
./CUPM-restore.sh pmadmin postgres /mnt/bak
Step 9
Enter the following commands to restart Apache, JBoss, and NICE services: 
nohup /opt/cupm/sep/build/bin/startcupm.sh > /opt/cupm/sep/logs/jboss.log 2>&1 &
nohup /opt/cupm/sep/build/bin/nice.sh NICE:01 > /opt/cupm/sep/logs/nice.log 2>&1 &