After you have created a script, you must configure the protection group to run the script when a switchover or takeover occurs. If a switchover or takeover occurs, the script runs on the cluster that is becoming the new primary cluster.
Before You Begin
You must be assigned the Geo Management rights profile to complete this procedure. For more information, see Securing Geographic Edition Software in Oracle Solaris Cluster 4.3 Geographic Edition Installation and Configuration Guide.
# geopg set-prop -p RoleChange_ActionCmd=fully-qualified-script \ -p RoleChange_ActionArgs=script-arguments protection-group-name
Specifies the properties of the protection group.
Specify the path to the command by using the RoleChange_ActionCmd property. This path should be valid on all nodes of all partner clusters that can host the protection group.
Define the arguments that you want to append to the command when the action command is run by using the RoleChange_ActionArgs property.
For more information about the properties you can set, see Standard Geographic Edition Properties.
Specifies the name of the protection group.
This example configures a protection group to run a custom command called newDNS.
# geopg set-prop -p RoleChange_ActionCmd=/usr/bin/newDNS \ -p RoleChange_ActionArgs=domain=companyx.com,ip=1.2.3.4 avspg