Go to main content

Oracle® Solaris Cluster 4.3 Geographic Edition System Administration Guide

Exit Print View

Updated: June 2017

How to Create a Custom Heartbeat Plug-in

This procedure describes how to create a custom heartbeat plug-in and add it to a default or custom heartbeat.

Before You Begin

  1. Log in to a cluster node in the primary cluster.
  2. Create the custom plug-in and add it to a heartbeat.
    # geohb add-plugin custom-plug-in-name heartbeat-name [-p property-setting [-p…]]

    Specifies the name of a default or custom heartbeat on the local cluster.


    Caution  -  The presence of a custom heartbeat prevents the default heartbeat from being used during partnership creation. If you want to use the default heartbeat for your partnership, you must delete the custom heartbeat before you create the partnership with the geops create command.


    Specifies the name of the custom heartbeat plug-in you are creating.

    –p property-setting

    Specifies a heartbeat plug-in property that is assigned a value by using a name=statement pair. Multiple properties might be set at one time by using multiple statements.

    Specify the path to your custom heartbeat plug-in by using the Query_cmd property.

    For more information about the properties you can set, see Standard Geographic Edition Properties.

    For more information about the geohb command, refer to the geohb(1M) man page.

  3. Verify that your changes were made correctly.
    # geoadm status
  4. Repeat the previous steps on a node of the secondary cluster.
Example 10  Creating a Custom Heartbeat Plug-in For the Default Heartbeat

The following example adds the custom heartbeat plug-in, command1, and adds it to the default heartbeat, hb_cluster-paris~cluster-newyork.

# geohb add-plugin command1 hb_cluster-paris~cluster-newyork -p Query_cmd=/usr/bin/hb
Example 11  Creating a Custom Heartbeat Plug-in For a Custom Heartbeat

This example creates the custom plug-in command1 and adds it to the paris-to-newyork custom heartbeat.

# geohb add-plugin command1 paris-to-newyork -p Query_cmd=/usr/bin/hb/