Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a System
Using Distributed Systems Administration Utilities
Chapter 3 175
g. Find the line
FS_FSCK_OPT[0]=“<%SG_PKG_FS_FSCK_OPT%>” and replace
the token with any filesystem specific fsck options. As above,
the token can be deleted and this option left blank. For
example, FS_FSCK_OPT[0]=“”.
h. Find the line “IP[0]=“<%SG_PKG_IP%>””and replace the
token with the IP address of the csync package. For example,
IP[0]= 123.456.789.3.
i. Find the line “SUBNET[0]=“<%SG_PKG_SUBNET%>””and
replace the token with the subnet for the package’s IP
address. Use netstat -i to help determine the subnet. Fore
example, SUBNET[0]= 123.456.789.0.
5. Distribute the package control script and package ASCII
configuration files cluster-wide:
# ccp csync csync.conf /etc/cmcluster/csync/
6. Apply the package and start it:
# cmapplyconf -P csync.conf
# cmmodpkg -e csync
Test the csync Package Configuration
Test the configuration by performing a the following steps:
1. On a managed client, use the command:
# cfagent --no-lock --verbose --no-splay
The verbose output will display the client, checking for updated
copies of the master policy files, copying them down to
/var/opt/cfengine/inputs if needed, and then executing the
contents of cfagent.conf/cf.main.
2. On the master server, test the cfrun command:
# cfrun -- --inform
--inform instructs the remote cfagent to use the --inform flag
which will produce messages for all changes cfengine performs
on the system. For additional information, the --verbose
command can also be helpful:
# cfrun -v -- --verbose