The following Cluster sample code files are delivered with the Cluster Services Developer Kit:
ncsharn.c: demonstrates how to implement many of the functions described in the sections of this document covering Cluster Services Architecture.
hmo.c: provides a generic health monitoring object (HMO) for various services in cluster environments; and ldaphmo.c: implements a simple HMO for LDAP services. Use these files in conjunction with each other to enable a LDAP HMO in a cluster environment.
NOTE:Use of this sample code is discussed in Health Monitor Object Sample.
Cluster.pl: demonstrates how to test cluster operations.
NOTE:Use of this sample code is discussed in Using Command Line Perl to Manage Cluster Services.