Download and Unpack the Software
Download the Xalan jar from http://www.apache.org/dyn/closer.cgi/xml/xalan-j
This URL provides links to different mirror sites and the Xalan jar can be downloaded in the form of *.tar.gz.
For these instructions assume that the download path is /export/lwact/installables/xalanand that you are going to download the Xalan xalan-j_2_7_1-bin-2jars.tar.gz.
Type the following commands to verify download of the Xalan jar to the /export/lwact/installables/xalan
bash-2.05# pwd /export/lwact/installables/xalan bash-2.05# ls xalan-j_2_7_1-bin-2jars.tar.gz |
To unpack the archive and install Xalan in the system, type the following command:
bash-2.05# gunzip xalan-j_2_7_1-bin-2jars.tar.gz bash-2.05# ls xalan-j_2_7_1-bin-2jars.tar bash-2.05# tar -xvf xalan-j_2_7_1-bin-2jars.tar bash-2.05# ls xalan-j_2_7_1 bash-2.05# cd xalan-j_2_7_1 bash-2.05# ls docs NOTICE.txt samples xalan.jar xml-apis.jar LICENSE.txt readme.html serializer.jar xercesImpl.jar xsltc.jar bash-2.05# pwd /export/lwact/installables/xalan/xalan-j_2_7_1 |
The path for xalan.jar is the following: /export/lwact/installables/xalan/ xalan-j_2_7_1
Provide 755 Access Permissions
Copy the directory pacifico from /opt/SUNWlwact/misc/ to /var/apache/htdocs/
bash-2.05# cp -rf /opt/SUNWlwact/misc/pacifico /var/apache/htdocs/ |
Provide 755 access permission to the /opt/SUNWlwact/xsl
bash-2.05# chmod -R 755 /opt/SUNWlwact/xsl |
Provide 755 access permission to the directory /var/apache/htdocs/pacifico
bash-2.05# chmod -R 755 /var/apache/htdocs/pacifico |
Complete the Installation
The browser-based Availability report for single host is created by /opt/SUNWlwact/sdk/my_uptime.cgi script which is part of the Oracle Lightweight Availability Collection Tool package installation.
Copy my_uptime.cgi file from /opt/SUNWlwact/sdk/ to /var/apache/cgi-bin/
bash-2.05# cp /opt/SUNWlwact/sdk/my_uptime.cgi /var/apache/cgi-bin/ |
Type the following command to provide 755 access permission to the file /var/apache/cgi-bin/my_uptime.cgi:
bash-2.05# chmod 755 /var/apache/cgi-bin/my_uptime.cgi |
Modify /var/apache/cgi-bin/my_uptime.cgi to include correct path for Xalan, the XSL path, and the Xalan binary path:
bash-2.05# vi /var/apache/cgi-bin/my_uptime.cgi |
Set the value of the $xalan variable to point to the path where the xalan.jar exists in the system:
$xalan="/export/lwact/installables/xalan/xalan-j_2_7_1; |
Set the value of the $syscmd variable:
$syscmd="/usr/bin/java -jar $xalan/xalan.jar -in $input -xsl $xslt -out $output"; |
If you manually modify the path for the log file (LOGDIR in /etc/default/lwact file), the value of $input must be modified accordingly: $input="/var/log/$hostId.lwact.xml";
Ensure that the $xslt variable points to singleLWACT.xsl in /opt/SUNWlwact/xsl/: $xslt="/opt/SUNWlwact/xsl/singleLWACT.xsl";
Replace avoidance.central with the Fully Qualified Domain Name (FQDN) of your host in the subroutine display_results():
print "<meta http-equiv=\"Refresh\" content=60; URL=http://avoidance.central/cgi-bin/my_uptime.cgi\">\n";
To view the GUI-based Oracle Lightweight Availability Collection Tool availability report, type the following URL in the address field of your web browser: http://<FQDN>/cgi-bin/my_uptime.cgi