1 | Request handle | Output | Char(16) |
2 | Cluster name | Input | Char(10) |
3 | Node id | Input | Char(8) |
4 | Format name | Input | Char(8) |
5 | Node entry information | Input | Char(*) |
6 | Length of node entry information | Input | Binary(4) |
7 | Results information | Input | Char(30) |
8 | Error code | I/O | Char(*) |
The Change Cluster Node Entry (QcstChangeClusterNodeEntry) API is used to change the fields in the cluster node entry. The fields that can be changed are the cluster interface addresses defined for the node and status of the node. The node entry which is being changed may or may not have Cluster Resource Services started.
The following conditions apply to this API:
This API operates in an asynchronous mode. See Behavior of Cluster Resource Services APIs for more information.
For primary-backup model cluster resource groups:
For peer model cluster resource groups, the membership status is changed to inactive.
If an exit program is specified for the cluster resource group, it will be called with an action code of Change Node Status (20).
If a problem is detected and the API does not complete successfully, the API can be run again once the problem is corrected. Any cluster resource group that had already had the status of a node changed from Partition to Failed and the recovery domain order changed will not be affected by running this API again.
When changing the node status to failed, the exit program for any cluster resource group which has the changing node in its recovery domain will be called with an action code of 20 (change node status). Since this is not a failover, no message is sent to the failover message queue. The cluster resource group status will remain at its current status value.
Warning:
Restriction: This API cannot be called from a cluster resource group exit program.
The program that calls this API must be running under a user profile with *IOSYSCFG special authority.
A unique string or handle that identifies this API call. It is used to associate this call to any responses placed on the user queue specified in the results information parameter.
The name of the cluster.
A valid simple name that uniquely identifies the node.
The content and format of the node entry information. The possible format names are:
IFCA0100 | Add cluster node interface |
IFCR0100 | Remove cluster node interface |
IFCC0100 | Replace cluster node interface |
STSC0100 | Change cluster node status |
Detailed information about the node entry.
The length of the node entry information.
A library qualified user queue name followed by a reserved field.
Library qualified user queue: A user queue, which exists on the node from which the API was called, that receives results information after the function has completed on all active nodes in the cluster. See the Usage Notes section of this API for a description of the data that is placed on this queue. This is a 20 character field. The first 10 characters contain the user queue name and the second 10 characters contain the user queue library name. No special values are supported. QTEMP, *LIBL, and *CURLIB are not valid for the library name. The attributes of this user queue must be keyed.
Reserved: The last 10 characters of results information are reserved and must be set to hexadecimal zero.
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | CHAR(16) | Cluster interface address |
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | CHAR(16) | Cluster interface address |
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | CHAR(16) | Old cluster interface address |
16 | 10 | CHAR(16) | New cluster interface address |
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | New node status |
Cluster interface address. The cluster interface address is an IP address that is used by Cluster Resource Services to communicate with other nodes in the cluster. The address is in dotted decimal format and is a null-terminated string.
Note: Cluster Resource Services uses existing interface addresses configured for an iSeries. See TCP/IP for instructions for configuring interface addresses on the iSeries. The IP addresses defined as cluster interface addresses can be used by other applications. If an IP address is reconfigured through the TCP/IP configuration functions, the Change Cluster Node Entry API should be used to make the corresponding change to the cluster interface address. A mismatch will cause cluster errors to occur. An interface address should not be used as a takeover IP address.
New cluster interface address. The cluster interface address which replaces the old cluster interface address. The address is in dotted decimal format and is a null-terminated string.
New node status. The new status of the node. The valid value for new node status is:
7 | The node has failed. |
Old cluster interface address. The cluster interface address which is being replaced. The address is in dotted decimal format and is a null-terminated string.
Asynchronous results are returned to a user queue specified by the Results Information parameter of the API. See Cluster APIs Use of User Queues and Using Results Information for details on how to create the results information user queue, the format of the entries, and how to use the data placed on the queue. The data is sent to the user queue in the form of a message identifier and the substitution data for the message (if any exists). The following identifies the data sent to the user queue (excluding the message text).
Message ID | Message Text |
---|---|
CPCBB01 C | Cluster Resource Services API &1 completed. completed. |
CPF3CF2 D | Error(s) occurred during running of &1 API. |
CPFBB09 D | Cluster node &1 does not exist in cluster &2. |
CPFBB13 D | Cluster interface address &1 already assigned to cluster node &2. |
CPFBB14 D | Cluster interface address &1 cannot be added for cluster node &2. |
CPFBB15 D | Cluster interface address &1 cannot be removed. |
CPFBB16 D | Cluster interface address &1 cannot be changed to &2. |
CPFBB17 D | &1 API cannot be processed in cluster &2. |
CPFBB24 D | Node &1 not participating in &2 protocol. |
CPFBB2D D | Timeout detected while waiting for a response. |
CPFBB46 D | Cluster Resource Services internal error. |
CPFBB47 D | Cluster Resource Services ended abnormally. |
CPFBB89 D | The current status of cluster node &1 cannot be changed. |
Messages that are delivered through the error code parameter are listed here. The data (messages) sent to the results information user queue are listed in the Usage Notes above.
Message ID | Error Message Text |
---|---|
CPF2113 E | Cannot allocate library &1. |
CPF3C1E E | Required parameter &1 omitted. |
CPF3C21 E | Format name &1 is not valid. |
CPF3C39 E | Value for reserved field not valid. |
CPF3CF1 E | Error code parameter not valid. |
CPF3CF2 E | Error(s) occurred during running of &1 API. |
CPF9801 E | Object &2 in library &3 not found. |
CPF9802 E | Not authorized to object &2 in &3. |
CPF9804 E | Object &2 in library &3 damaged. |
CPF980C E | Object &1 in library &2 cannot be in an independent auxiliary storage pool. |
CPF9810 E | Library &1 not found. |
CPF9820 E | Not authorized to use library &1. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
CPFBB02 E | Cluster &1 does not exist. |
CPFBB09 E | Cluster node &1 does not exist in cluster &2. |
CPFBB13 E | Cluster interface address &1 already assigned to cluster node &2. |
CPFBB14 E | Cluster interface address &1 cannot be added for cluster node &2. |
CPFBB15 E | Cluster interface address &1 cannot be removed. |
CPFBB16 E | Cluster interface address &1 cannot be changed to &2. |
CPFBB17 E | &1 API cannot be processed in cluster &2. |
CPFBB32 E | Attributes of user queue &1 in library &2 are not valid. |
CPFBB39 E | Current user does not have IOSYSCFG special authority. |
CPFBB44 E | &1 API cannot be called from a cluster resource group exit program. |
CPFBB46 E | Cluster Resource Services internal error. |
CPFBB56 E | Length of node entry not valid. |
CPFBB5F E | Field value within structure is not valid. |
CPFBB70 E | API request &1 not compatible with current cluster version. |
CPFBB89 E | The current status of cluster node &1 cannot be changed. |
TCP1901 E | Internet address &1 not valid. |
Top | Cluster APIs | APIs by category |