Oracle® Light Weight Availability Collection Tool User's Guide Release 3.3 for Oracle Solaris Part Number E20940-01 |
|
|
PDF · Mobi · ePub |
The Oracle Lightweight Availability Collection Tool comes with a browser-based GUI display that is used to display the recorded availability results so they are easy to understand. You must configure and run a web server on the host where the tool is installed. You can then use simple web services to display the Availability datagram report in a web browser.
A predefined set of XSL style sheets are provided when the Oracle Lightweight Availability Collection Tool is installed. An XSL translator is required to translate the datagrams to HTML and to display it in the web browser.
A web services Perl script is provided as a reference application when the package is installed.
In order to display the availability reports in the GUI, you must have an XML to HTML converter. Xalan is one such software. It is available as a C based binary as well as java based jar file.
To install Xalan, decide whether you want to install the C based binary or the java based jar file, and complete the steps in the appropriate section below.
Note:
The prerequisite (common for both C and Java based Xalan) is that the Oracle Lightweight Availability Collection Tool and an Apache web server must be installed in the system. The Apache web server can be downloaded fromhttp://httpd.apache.org/download.cgi
.To configure the GUI for the Oracle Lightweight Availability Collection tool, you need to have Xalan and Xerces binaries installed in the host.
Download the latest Xalan-c software from http://www.apache.org/dyn/closer.cgi/xml/xalan-c
.
This URL provides links to different mirror sites. The binaries are available under the Binaries folder on any of these mirror sites. It can be downloaded in the form of *.tar.gz according to system specification (32 or 64 bit).
For these instructions assume that the download path is /export/lwact/installables/xalan and that you are going to download the Xalan binary Xalan-C_1_10_0-solaris_28_64-cc_62.tar.gz for a 64-bit Solaris system.
To verify download of the Xalan-c software file to /export/lwact/installables/xalan, type the following commands:
bash-2.05# pwd /export/lwact/installables/xalan bash-2.05# ls Xalan-C_1_10_0-solaris_28_64-cc_62.tar.gz
Unpack the archive to install Xalan in the system; type the following commands:
Note:
The path for binary Xalan is /export/lwact/installables/xalan/Xalan-C_1_10_0-solaris_28-cc_62/bin and the path for Xalan library is /export/lwact/installables/xalan/Xalan-C_1_10_0-solaris_28-cc_62/lib.bash-2.05# gunzip Xalan-C_1_10_0-solaris_28_64-cc_62.tar.gz bash-2.05# ls Xalan-C_1_10_0-solaris_28_64-cc_62.tar bash-2.05# tar -xvf Xalan-C_1_10_0-solaris_28_64-cc_62.tar bash-2.05# ls Xalan-C_1_10_0-solaris_28_64-cc_62 bash-2.05# cd Xalan-C_1_10_0-solaris_28_64-cc_62 bash-2.05# ls KEYS LICENSE NOTICE bin/ include/ lib/ samples/ bash-2.05# cd bin bash-2.05# ls CompileStylesheet SerializeNodeSet StreamTransform UseStylesheetParam DocumentBuilder SimpleTransform ThreadSafe Xalan ExternalFunction SimpleXPathAPI TraceListen XalanTransform ParsedSourceWrappers SimpleXPathCAPI TransformToXercesDOM XalanTransformerCallback bash-2.05# pwd /export/lwact/installables/xalan/Xalan-C_1_10_0-solaris_28-cc_62/bin bash-2.05# cd ../lib bash-2.05# pwd /export/lwact/installables/xalan/Xalan-C_1_10_0-solaris_28-cc_62/lib
Download the latest Xerces-c library file from http://www.apache.org/dyn/closer.cgi/xml/xerces-c
.
This URL provides links to different mirror sites. The binaries are available under the Binaries folder of any mirror site. It can be downloaded in the form of *.tar.gz according to system specification (32 or 64 bit).
For these instructions, assume that the download path is /export/lwact/installables/xerces and that you are going to download the Xerces binary xerces-c_2_7_0-solaris_28-cc_62.tar.gz for a 64-bit Solaris system.
Type the following commands to download the Xerces-c library file to /export/lwact/installables/xerces
bash-2.05# pwd /export/lwact/installables/xerces bash-2.05# ls xerces-c_2_7_0-solaris_28-cc_62.tar.gz
Unpack the archive to install Xerces-c in the system; type the following commands:
Note:
The path for xerces library is /export/lwact/installables/xerces/xerces-c-solaris_28-cc_62/lib.bash-2.05# gunzip xerces-c_2_7_0-solaris_28-cc_62.tar.gz bash-2.05# ls xerces-c_2_7_0-solaris_28-cc_62.tar bash-2.05# tar -xvf xerces-c_2_7_0-solaris_28-cc_62.tar bash-2.05# ls xerces-c-solaris_28_64-cc_62 bash-2.05# cd xerces-c-solaris_28_64-cc_62 bash-2.05# ls LICENSE Readme.html credits.txt etc lib samples version.incl NOTICE bin doc include msg scripts bash-2.05# cd lib bash-2.05# ls libxerces-c.so libxerces-c.so.27.0 libxerces-depdom.so.27 libxerces-c.so.27 libxerces-depdom.so libxerces-depdom.so.27.0 bash-2.05# pwd /export/lwact/installables/xerces/xerces-c-solaris_28-cc_62/lib
To provide 755 access permissions to the /opt/SUNWlwact/xsl directory, type the following command:
bash-2.05# chmod -R 755 /opt/SUNWlwact/xsl
Type the following command to copy the directory pacifico from /opt/SUNWlwact/misc/ to /var/apache/htdocs/
bash-2.05# cp -rf /opt/SUNWlwact/misc/pacifico /var/apache/htdocs/
Type the following commands to provide 755 access permission to the cgi-bin directory:
bash-2.05# chmod 755 /var/apache/cgi-bin
Type the following commands to provide 755 access permission to the pacifico directory:
bash-2.05# chmod -R 755 var/apache/htdocs/pacifico
The web browser-based Availability report for a single host is created by the /opt/SUNWlwact/sdk/my_uptime.cgi script, which is part of Oracle Lightweight Availability Collection Tool package installation.
Copy the my_uptime.cgi file from the /opt/SUNWlwact/sdk/ directory to the /var/apache/cgi-bin/ directory:
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 /var/apache/cgi-bin/my_uptime.cgi file:
bash-2.05# chmod 755 /var/apache/cgi-bin/my_uptime.cgi
Modify the /var/apache/cgi-bin/my_uptime.cgi file to include correct path for Xalan, Xerces libraries, the XSL path and the Xalan binary path:
bash-2.05# vi /var/apache/cgi-bin/my_uptime.cgi
At the beginning of the Variable Initialization section, type the following statement to include the libraries for Xalan and Xerces:
$ENV{'LD_LIBRARY_PATH'} = "/export/lwact/installables/xalan/Xalan-C_1_10_0-solaris_28-cc_62/lib: /export/lwact/installables/xerces/xerces-c-solaris_28-cc_62/lib: $ENV{'LD_LIBRARY_PATH'}";
Make sure that the input file is included properly by verifying value of $input:$input="/var/log/$hostId.lwact.xml";
If you manually modify the path for the log file (LOGDIR in the /etc/default/lwact file), the value of $input must be modified accordingly. The value set to the $xalan variable must be modified to point to Xalan in the system:
$xalan="/export/lwact/installables/xalan/Xalan-C_1_10_0-solaris_28-cc_62/bin/Xalan";
Make sure that the variable $xslt 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 the 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
Complete the instructions as outlined below.
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 file:
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
Note:
The path for xalan.jar is: /export/lwact/installables/xalan/ xalan-j_2_7_1Copy 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 directory:
bash-2.05# chmod -R 755 /opt/SUNWlwact/xsl
Provide 755 access permission to the /var/apache/htdocs/pacifico directory:
bash-2.05# chmod -R 755 /var/apache/htdocs/pacifico
The browser-based Availability report for single host is created by the /opt/SUNWlwact/sdk/my_uptime.cgi script which is part of the Oracle Lightweight Availability Collection Tool package installation.
Copy the my_uptime.cgi file from the /opt/SUNWlwact/sdk/ directory to the /var/apache/cgi-bin/ directory:
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 /var/apache/cgi-bin/my_uptime.cgi file:
bash-2.05# chmod 755 /var/apache/cgi-bin/my_uptime.cgi
Modify the /var/apache/cgi-bin/my_uptime.cgi file to include the 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 the /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 the singleLWACT.xsl file 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