Verifying the HA agent

Because machines running the Solaris operating system can support different cluster software, sp_companion includes the show_cluster option to query the HA agent currently running and the set_cluster option to set the HA agent.

If you are running the Veritas Cluster Server subsystem, you must specify this with sp_companion. Adaptive Server assumes it is running the Sun Cluster software unless you specify otherwise.

The syntax is:

sp_companion companion_server_name, [show_cluster]
sp_companion companion_server_name, [set_cluster ["SC-2.2" | "SC-3.0" | "VCS-Sybase" | "VCS-HAase"]]

In the following example, Adaptive Server is using the default HA agent for Sun Cluster 2.2:

sp_companion MONEY1, show_cluster

The default cluster is: SC-2.2.
The current cluster is set to default.
Supported cluster systems for SunOS are:
SC-2.2
VCS-Sybase
SC-3.0
VCS-HAase

To change the Adaptive Server to use the HAase agent for the Veritas Cluster:

sp_companion MONEY1, set_cluster, "VCS-HAase"

The current cluster is set to VCS-HAase

The Adaptive Server now uses the HAase agent for the VCS subsystem.

NoteYou must not change to another HA agent type when Adaptive Server is configured for normal companion mode on your VCS system