#mkdir /etc/cmcluster/pkg/tomcat_pkg/

2.Copy the toolkit template and script files from tomcat directory.

#cd /etc/cmcluster/pkg/tomcat_pkg/ #cp /opt/cmcluster/toolkit/tomcat/* ./

3.Create a configuration file (pkg.conf) as follows.

#cmmakepkg -m ecmt/tomcat/tomcat pkg.conf

4.Edit the package configuration file.

NOTE: Tomcat toolkit configuration parameters in the package configuration file have been prefixed by ecmt/tomcat/tomcat when used in Serviceguard A.11.19.00 or later.

For Example:

/etc/cmcluster/pkg/tomcat_pkg/pkg.conf

The configuration file should be edited as indicated by the comments in that file. The package name needs to be unique within the cluster.

For Example:

PACKAGE_NAME tomcat NODE_NAME node1 NODE_NAME node2

Set the TKIT_DIR variable as the path of <package_directory>. For example, TKIT_DIR /etc/cmcluster/pkg/tomcat_pkg.

5.Use cmcheckconf command to check for the validity of the configuration specified. For Example:

#cmcheckconf -P pkg.conf

6.If the cmcheckconf command does not report any errors, use the cmapplyconf command to add the package into Serviceguard environment.

For Example:

#cmapplyconf -P pkg.conf

Setting up The Toolkit

Toolkit Overview

After installing the toolkit, four scripts and one README file will be installed in the location /opt/ cmcluster/toolkit/tomcat. Two more scripts and one file will be installed which will be used only for modular packages. The two scripts will be in the /etc/cmcluster/scripts/ ecmt/tomcat directory. The third file will be in the /etc/cmcluster/modules/ecmt/tomcat the directory.

Table 30 (page 119) shows the scripts used in legacy packages are:

118 Using Tomcat Toolkit in a HP Serviceguard Cluster