Update a Web Archive File
For supported software information, click here.
Versa Networks engineering provides web archive (WAR) files as a patch to correct a problem in an Analytics cluster. This article describes how to update WAR files on an Analytics cluster.
To update WAR files:
- Log in the shell on one node in the Analytics cluster, and then download the WAR file. Please consult Versa technical support for default credentials.
- Create a backup copy of the existing WAR file:
admin@Analytics$ sudo su root@Analytics# mkdir /tmp/backup-war root@Analytics# mv /opt/versa/bin/versa-1.0.war /tmp/backup-war/
- Change to the /opt/versa_van/apps/apache-tomcat/webapps directory, and then remove existing WAR files. Ensure that you do not issue the rm command from a directory other than /opt/versa_van/apps/apache-tomcat/webapps.
root@Analytics# cd /opt/versa_van/apps/apache-tomcat/webapps root@Analytics# pwd /opt/versa_van/apps/apache-tomcat/webapps root@Analytics# rm -rf ./*.war
- Remove the ROOT directory:
root@Analytics# pwd /opt/versa_van/apps/apache-tomcat/webapps root@Analytics# rm -rf ROOT root@Analytics# exit
- Copy the new versa-1.0.war file from the download location to the /opt/versa/bin directory:
root@Analytics# cd /opt/versa/bin root@Analytics# cp downloaded-war-file /opt/versa/bin
- Verify that the versa-1.0.war file is present:
root@Analytics# ls -lrth
- Restart Analytics services. On each node, issue the vsh restart command, and then wait for the command to complete before issuing the command on the next node.
root@Analytics# vsh restart
- If you face any issues, you can rollback to the old WAR file:
root@Analytics# cp /tmp/backup-war/versa-1.0.war /opt/versa/bin/ root@Analytics# vsh restart
- Repeat Steps 1 through 7 for each node in the Analytics cluster.
Supported Software Information
Releases 20.2 and later support all content described in this article.