If you are reinstalling Moab Viewpoint for Moab HPC Suite, including retrying an upgrade, complete the instructions found in Before installing Viewpoint, then perform the following steps.
To reinstall Viewpoint
/webapp
directories if you want to keep your current Viewpoint settings.
> cp -r /opt/viewpoint /tmp/viewpoint/ > cp -r /var/lib/tomcat6/webapps/moab /tmp/viewpoint/ |
> mysql -u root -p viewpoint < /tmp/viewpoint/sql/[dbType]/drop_tables.sql |
> rm -rf /opt/viewpoint/* /usr/share/tomcat6/webapps/moab* /usr/share/tomcat6/work/Catalina/localhost/moab* /usr/share/tomcat6/work/Catalina/localhost/reporting* /var/lib/tomcat6/work/Catalina/localhost/moab* /var/lib/tomcat6/work/Catalina/localhost/reporting* |
> cp /tmp/viewpoint/moab.war /var/lib/tomcat6/webapps |
> cp /opt/viewpoint/bak/setup.properties.[dbType] |
If you do not have a backed up, working copy, create one from the templates and change its name to setup.properties, removing the .[dbType]. Modify it according to your database's type, host name, port, name, schema, admin username, admin password, and temporary directory. The included template is based on the MySQL database type:
> vi /opt/viewpoint/setup.properties #dbType=mysql #dbHost=hostName #dbPort=1433 #dbName=viewpoint #dbSchema=viewpoint #dbUser=viewpoint #dbPassword=myPassword #tempDir=/tmp |
chown -R tomcat6:tomcat6 /opt/viewpoint |
You must grant read privileges for this directory to the Tomcat user. If you do not know the Tomcat user (often tomcat or tomcat6), use the owner of the Tomcat home directory (usually /var/lib/tomcat6).
> service tomcat6 start |
Back up the setup.properties file and delete it from the Viewpoint home directory.
If you want reporting in Viewpoint, please contact Adaptive Computing Professional Services.
Related topics
© 2012 Adaptive Computing