Refer to the following guides to develop agents using scripts and C/C++.
Sun Cluster Data Services Developer’s Guide for Solaris OS
Sun Cluster 3.2 Data Services Collection for Solaris OS (SPARC Platform Edition)
Sun Cluster Data Services Planning and Administration Guide for Solaris OS