Retrieve Attribute Names (QmrRtvAttributeNames) API


  Required Parameter Group:


  Service Program: QMRAP1

  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Attribute Names (QmrRtvAttributeNames) API returns a list of supported attributes for a monitored resource entry (MRE). Supported attributes can be monitored for changes in a cluster administrative domain by adding a monitored resource entry specifying the list of attributes. Different attributes may be supported for different cluster versions. The list of supported attribute names returned can be the attributes supported for the current cluster version of the cluster, the attributes supported for the potential cluster version of the local node, or the attributes supported for a specified cluster version. For more information about monitored resources, see Cluster administrative domain.


Restrictions:

  1. The list of supported attributes for *AUTL or *PRTDEV resource types can only be retrieved when the IBM® PowerHA™ for i licensed program product is installed.

Authorities and Locks

Network Server Description
*USE
Network Server Configuration
*USE

Printer Device Description
*USE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that holds the information requested.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable in bytes. The minimum length is 8 bytes. If the length of receiver variable is not large enough to hold the entire list of supported attributes for the monitored resource, no records are returned. If the length of the receiver variable specified is larger than the allocated size of the receiver variable specified in the user program, the results are not predictable.

Receiver variable format name
INPUT; CHAR(8)

The content and format of the information that is returned. The possible format names are as follows:


Resource information
Input; CHAR(*)

The resource information for which supported attribute names are returned.

Resource information format name
INPUT; CHAR(8)

The content and format of the information which is desired. The possible format names are as follows:


Server information
Input; CHAR(*)

The cluster information used to return the appropriate attribute information.

Server information format name
INPUT; CHAR(8)

The content and format of the information for a cluster. The possible format names are as follows:


Error code
I/O; CHAR(*)

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


ATTR0100 Format



Field Descriptions

Attribute name. The name of the attribute. See Attributes that can be monitored in the Implementing high availability topic collection for a list of different attributes for each resource type.

Attribute type. The type of the attribute. Valid values are:

Bytes available. The number of bytes of data available to be returned to the user.

Bytes returned. The number of bytes of data returned to the user.

Displacement to next attribute name. The displacement in bytes from the start of the current entry to the next entry.

Length of attribute name. The length, in bytes, of the attribute name.

Number of attribute names. The number of attribute names returned.

Offset to attribute names. The offset, in bytes, from the beginning of the receiver variable to the attribute information. If no entries are returned, the offset is set to 0.

Reserved. Set to hex zeros.


RSCI0100 Format



Field Descriptions

Length of fixed fields. The length of the fixed fields in the format description. For RSCI0100 this value must be 32.

Length of resource name. The length, in bytes, of the resource name. The specified length must be at least 1 byte but not longer than 256 bytes.

Offset of resource name. The offset, in bytes, from the beginning of this structure to the first byte of the resource name.

Library name. The name of the library for the resource. This field must be set to blanks.

Resource name. The name of the resource for which the supported attribute names is returned. Valid values are:

Resource type. The type of resource. Possible values are:



SVRI0200 Format



Field Descriptions

Cluster administrative domain name. The name of the cluster administrative domain for which the list of attribute names is retrieved. The cluster administrative domain must exist if a name is specified. If a name is not specified, this field must be set to hex zeros.

Cluster name. The name of the cluster for which the list of attribute names is retrieved. The attribute names which are returned are those that are valid for the current version of the specified cluster. The cluster must exist. If a cluster does not exist, or the list of names to be returned is for a specific supported cluster version or potential cluster version, this field must be set to hex zeros.

Cluster modification level. The specific cluster modification level for which a list of supported attribute names is returned. This field must be set to hex zeros if a cluster name is specified.

Cluster version. The cluster version for which a list of supported attribute names is returned. This field must be set to hex zeros if a cluster name is specified. If a cluster name is not specified, the possible values are:


Length of fixed fields. The length, in bytes, of the server information format.

Length of server defined output. This field is not used and must be set to hex zeros.

Results information queue. This field is not used and must be set to hex zeros.


Error Messages




API introduced: V6R1

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