List PowerHA Information (QhaListHAInfo) API


  Required Parameter Group:


  Service Program: QHASM/QHAAPI

  Default Public Authority: *USE

  Threadsafe: Yes

The List PowerHA Information (QhaListHAInfo) API retrieves PowerHA information about the High Availability clustered environment managed by the PowerHA licensed program product. It must be called from a program running on one of the nodes in the cluster which has the PowerHA licensed program product installed. The information returned may not be current if this API is called from a program running on a node that has a status of Inactive or Failed.

Authorities and Locks

None.


Required Parameter Group

Qualified user space name
OUTPUT; CHAR(20)

The user space that receives the information and the library in which it is located. The first 10 characters contain the user space name, and the second 10 characters contain the library name. No special values (QTEMP, *CURLIB, or *LIBL) can used for the library name.

Cluster name
INPUT; CHAR(10)

The name of the cluster for which information is retrieved.

Format name
INPUT; CHAR(8)

The format of the information to be returned. Supported format names are:

Node ID
INPUT; CHAR(8)

A valid simple name that uniquely identifies a node. *ALL special value can be used to return PowerHA information about all known nodes in the high availability environment. The *ALL special value must be left-justified.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Generated Lists

The PowerHA information list consists of:

For details about the user area and generic header, see User spaces. For detailed descriptions of the fields in the list returned, see Field Descriptions.

When you retrieve list entry information from a user space, you must not use the entry size returned in the generic header. Each entry may have a different size. The size of each entry may be padded at the end.

Input Parameter Section


Header Section

Global information about the high availability environment.


LHAI0100 Format


Field Descriptions

Cluster name. The name of the cluster for which information is retrieved.

Current cluster version. The version at which the nodes in the cluster are actively communicating with each other. This value in conjunction with the potential node version determines what nodes can join in the cluster. This value also determines the cluster's ability to use new functions supported by the node's potential node version. It is set when the cluster is created and can be changed by the Adjust Cluster Version (QcstAdjustClusterVersion) API.

Current cluster version modification level. The modification level of the current cluster version. The modification level further identifies the version at which the nodes in the cluster communicate. It is updated when code changes that impact the version are applied to the system.

Current PowerHA fix level. The current PowerHA PTF level of the node.

Current PowerHA version. The version at which the nodes in the cluster which are known by the PowerHA product are actively communicating with each other. Nodes are known by the PowerHA product if the PowerHA product is installed on the node in the same cluster and the potential PowerHA version of the node is compatible with the current PowerHA version. This value also indicates what function is supported by the known PowerHA nodes. The value is set when a cluster is created, or is assumed to be the lowest supported PowerHA version if a cluster already exists when the PowerHA product is installed. This field should be used for printed output only. The current PowerHA version can be changed with the Change Cluster Version (CHGCLUVER) command.

Current PowerHA version for programmer use. The integer representation of the current PowerHA version. This field should be used for verifying code compatibility between the PowerHA product version and an application using the PowerHA functionality provided in the version.

Current PowerHA modification for programmer use. The integer representation of the current PowerHA modification. This field should be used for verifying code compatibility between PowerHA modification levels and applications using the PowerHA functionality provided in the modification.

Format name. The content and format of the information returned in the user space.

Information status. Indicates the consistency of the retrieved information.

Length of node entry. The length of the node entry.

Node entry array. Array of cluster nodes for which information is being returned.

Node ID. A valid simple name that uniquely identifies a node.

Potential node version. The version at which the node is capable of communicating with the other nodes in the cluster. This is the value associated with the cluster code installed on the node. It will be used to determine if the node can join a cluster. If communications have not yet been established with the node (status of New), then the potential node version will be reported as 0.

Potential node version modification level.The modification level of the potential node version. The modification level further identifies the version at which the node is capable of communicating with the other nodes in the cluster. It is updated when code changes that impact the version are applied to the system.

Potential PowerHA version. The version at which the PowerHA product installed on the node in the cluster is capable of communicating with other known PowerHA nodes. A node is known to the PowerHA product if the PowerHA product is installed on a node in the same cluster and the potential PowerHA version of the node is compatible with the current PowerHA version.

PowerHA licensed program product release. The version, release, and modification level of the PowerHA licensed program product that is installed on the node. The format of this field is VxRyMz, where x is any numeric character 0 through 9, y is any numeric character 0 through 9, and z is any numeric character 0 through 9 or uppercase letter A through Z. The value is left justified and space padded.

PowerHA node status. The status of the node which is known to the PowerHA product. This value indicates whether or not the PowerHA protocol job is active. The possible statuses are:

Reserved. The field will contain hexadecimal zeroes.

User space name. The name of the user space.

User space library name. The name of the library in which the user space resides. No special values are supported for library name.


Error Messages

Messages that are delivered through the error code parameter are listed here.




API introduced: IBM® i 7.1

[ Back to top | Cluster APIs | APIs by category ]