The Sun Cluster Data Service API uses command-line utilities and a C-callable library. For convenience, all C-callable functionality is also available using the command-line utility programs. This enables you to code in a scripting language such as the Bourne shell (sh(1)), if you choose.
The API is defined by its man pages:
hareg(1M)--Controls registration and activation of Sun Cluster data services
haget(1M)--Queries current state of Sun Cluster configuration
ha_open(3HA), ha_close(3HA)--Sun Cluster environment open and close
hatimerun(1M)--Provides a convenient facility for timing out the execution of another child program. It is useful when programming in scripting languages such as the Bourne shell.
halockrun(1M)--Provides a convenient means to claim a file lock on a file and run a program while holding that lock. It is useful when programming in scripting languages such as the Bourne shell.
hactl(1M)--Provides various control operations on Sun Cluster. The control operations include requesting the movement of a logical host from one physical host to another (possibly forcibly), requesting the movement of all logical hosts that a physical host currently masters to other physical host(s), and requesting a cluster reconfiguration.
pmfadm(1M)--Provides the administrative, command line interface, to the process monitor facility.
rpc.pmfd(1M)--RPC-based server for serving the process monitor facility that is used by the Sun Cluster 2.2 System.
The command line utilities and the C-callable library are documented in the man pages.