HP Enterprise Cluster Master Toolkit User Guide (5900-2131, December 2011)

#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 118) shows the scripts used in legacy packages are:
Table 30 Legal Package Scripts
DescriptionScript Name
This script contains a list of pre-defined variables that may be customized for
the user's environment. This script provides the user a simple format of the
User Configuration file (hatomcat.conf)
118 Using Tomcat Toolkit in a HP Serviceguard Cluster