Add HA Policy (ADDHAPCY)

The Add High Availability (HA) Policy (ADDHAPCY) command adds a policy to an HA environment. Policies control specific behaviors related to clustering and HA environments. Policy information is distributed to all nodes in a cluster.

Restrictions:

Parameters

Keyword Description Choices Notes
CLUSTER Cluster Name, * Required, Positional 1
PCY Policy name Name Required, Positional 2
PCYDMN Policy domain Name Required, Positional 3
QUAL Policy qualifier Character value, *NONE Required, Positional 4
VALUE Policy value Character value, *NONE Optional

Cluster (CLUSTER)

Specifies the name of the cluster.

This is a required parameter.

*
The cluster that has been configured on this system is used.
name
Specify the name of the cluster for the policy.

Policy name (PCY)

Specifies the name of the policy. Additional information on policies may be found in the PowerHA documentation: http://www.ibm.com/developerworks/ibmi/ha/.

This is a required parameter.

name
Specify the name of the policy.

Policy domain (PCYDMN)

Specifies the name of the domain to which the policy applies. For example, if the policy is for an administrative domain, the policy domain would specify an administrative domain name.

name
Specify the name of the domain that the policy pertains to.

Policy qualifier (QUAL)

Specifies additional information about the policy to distinguish the instance of the policy from similar policy. The possible values in this field are different for each policy, but the format of the information in many policies is very similar to the CL command line parameter format. Additional information on policy qualifiers may be found in the PowerHA documentation: http://www.ibm.com/developerworks/ibmi/ha/.

This is a required parameter.

*NONE
No qualifier is associated with this policy. This is only applicable to certain policies.
character value
Specify the policy qualifier in the format required for the policy.

Policy value (VALUE)

Specifies the policy value. The possible values in this field are different for each policy. Additional information on policy values may be found in the PowerHA documentation: http://www.ibm.com/developerworks/ibmi/ha/.

*NONE
No value is associated with this policy. This is only applicable to certain policies.
character value
Specify the value of the policy. The value must be enclosed in apostrophes if it contains any non-alphanumeric character or blanks. If an apostrophe is intended, two apostrophes must be used ('').

Examples for ADDHAPCY

Example 1: Adding an High Availability (HA) policy for automatically adding monitored resources of type user profile to the admin domain when they are created

ADDHAPCY   CLUSTER(*) PCY(QCST_AD_CREATE) PCYDMN(AD1)
           QUAL('RSCTYPE(*USRPRF)') VALUE(*NONE)

This command adds an HA policy for the cluster containing the current node. The policy configures the behavior of PowerHA to add monitored resource entries automatically for user profiles to the admin domain AD1 when the user profiles are created on the system.

Note: This applies to resources created after the policy is defined. Existing user profiles are not added to the admin domain at the time when this policy is added.

Error messages for ADDHAPCY

*ESCAPE Messages

HAE002B
&1 command failed.