1 | Manager type | Input | Char(10) |
2 | Monitored resource information | Input | Char(*) |
3 | Length of monitored resource information | Input | Binary(4) |
4 | Format of monitored resource information | Input | Char(8) |
5 | Attribute information | Input | Char(*) |
6 | Length of attribute information | Input | Binary(4) |
7 | Format of attribute information | Input | Char(8) |
8 | Server information | Input | Char(*) |
9 | Length of server information | Input | Binary(4) |
10 | Format of server information | Input | Char(8) |
11 | Server defined output | Output | Char(*) |
12 | Error code | I/O | Char(*) |
The Add Monitored Resource Entry (QfpadAddMonitoredResourceEntry) API adds a monitored resource entry for a system resource and its attributes. A resource may be a system object or a set of attributes not associated with a specific system object, such as the set of system environment variables. System objects and attributes are monitored by the system to allow notifications of changes to the attributes to be passed to a supporting system function or application for system management purposes.
When adding a monitored resource entry (MRE) for a system object, the monitored resource name is the name of the system object. It is possible to specify one or more of the system object's attributes for monitoring. Otherwise, a special value of -1 may be specified as the number of attribute entries, which will cause all of the system object's allowed attributes to be monitored by the system.
When adding a monitored resource entry (MRE) for a resource that is not a system object, such as a system value, network attribute, TCP/IP attribute or system environment variable, the monitored resource name is the name of the specific system value, network attribute, TCP/IP attribute, or system environment variable which is to be monitored by the system.
This API will do the following when the manager type is *ADMDMN:
This API requires the following when the manager type is *ADMDMN:
The management function which is to monitor the resource. *ADMDMN must be specified.
The monitored resource information provided as input.
The length of the monitored resource information.
The format name of the monitored resource information. The following format name is allowed:
EENT0100 The format of the monitored resource information.
The attribute information for the resource being monitored.
The length of attribute information.
The format name for the attribute information. The following format name is allowed:
ATRI0100 The format of the attribute information for an entry.
The information about the server where the monitored resource entry will be monitored by the system. When the manager type is *ADMDMN the server is the cluster resource group associated with the cluster administrative domain.
The length of the server information. The length of the server information parameter must be set to the size of the SRVI0100 structure.
The format name of the server information. The following format name is allowed:
SRVI0100 The format of the server information when the server is a cluster.
When the manager type is *ADMDMN, the server defined output contains the 16 character request handle. The request handle is 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 API will generate the request handle and return the handle to the caller of the API.
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(10) | Monitored resource type |
10 | A | CHAR(10) | Monitored resource library name |
20 | 14 | BINARY(4) | Length of monitored resource name |
24 | 18 | CHAR(*) | Monitored resource name |
Length of monitored resource name. The length in bytes of the monitored resource name.
Monitored resource library name. The name of the monitored resource library. The allowed values are:
Blank | Specify a blank monitored resource library name for the monitored resource types *SYSVAL, *ENVVAR, *NETA, or *TCPA. |
Monitored resource library name | Specify a monitored resource library name for the monitored resource types *USRPRF, *ASPDEV, *JOBD, and *CLS. Monitored resource types of *USRPRF and *ASPDEV must specify QSYS for the monitored resource library name. Library special values, e.g. *CURLIB or *LIBL, are not allowed. |
Monitored resource name. The name of the monitored resource which is being monitored by the system.
Monitored resource type. The type of monitored resource entry which is being monitored by the system. The allowed values are:
*USRPRF | User profile. |
*JOBD | Job description. |
*CLS | Class. |
*ASPDEV | Independent auxiliary storage pool (ASP) device description. |
*SYSVAL | System value. |
*NETA | Network attribute. |
*ENVVAR | System environment variable. |
*TCPA | TCP/IP attribute. |
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | Number of attribute entries |
4 | 4 | BINARY(4) | Offset to attribute array |
Note: The following fields repeat for each attribute monitored by the system. | |||
BINARY(4) | Displacement to next attribute entry | ||
BINARY(4) | Length of attribute name | ||
CHAR(*) | Attribute name |
Attribute name. The name of the attribute to be monitored by the system. For monitored resource types of *ENVVAR, *SYSVAL, *NETA and *TCPA, the attribute name is the same as the resource name.
Displacement to next attribute entry. The displacement in bytes from the beginning of this entry to the beginning of the next attribute entry.
Length of attribute name. The length, in bytes, of the attribute name.
Number of attribute entries. The number of attribute entries in the ATRI0100 format. Tbe allowed values are:
-1 | Specify -1 to monitor all allowed attributes for a system object monitored resource. |
>0 | Specify a value greater than 0 to monitor one or more attributes for a system object monitored resource. A value of 1 must be specifed for monitored resource types *SYSVAL, *ENVVAR, *NETA, or *TCPA. |
Offset to attribute array. The offset in bytes from the beginning of this structure to the first attribute entry. A value of 0 must be specified when the Number of attribute entries value is equal to -1.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | Length of server defined output |
4 | 4 | CHAR(10) | Cluster name |
14 | E | CHAR(10) | Cluster administrative domain name |
28 | 1C | CHAR(30) | Results information |
Cluster administrative domain name. The name of the cluster administrative domain.
Cluster name. The name of the cluster.
Length of server defined output. The length, in bytes, of the server defined output parameter for this API. If the manager type is *ADMDMN, this value must be 16.
Results information. This field identifies a qualified user queue field and is followed by a reserved field.
Qualified user queue: Completion information is returned to this user queue, which exists on the node from which the API was called, after the function has completed. 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, *CURLIB are not valid library names. The attributes of this user queue must be keyed.
Reserved: The last 10 characters of the results information are reserved and must be set to hexadecimal zero.
See Cluster basics for more information about using this API to add monitored resource entries in a cluster administrative domain.
Unless otherwise noted, all character strings are assumed to be in the CCSID of the program that calls the API.
Monitored resources must exist in the system base auxiliary storage pool (ASP).
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. |
CPF1999 D | Errors occurred on command. |
CPF2204 D | User profile &1 not found. |
CPF3C21 E | Format name &1 is not valid. |
CPF3CF2 D | Error(s) occurred during running of &1 API. |
CPFBB17 D | &1 API cannot be processed in cluster &2. |
CPFBB2D D | Timeout detected while waiting for a response. |
CPFBB35 D | The user profile name &1 is not valid for this request. |
CPFBB39 E | Current user does not have IOSYSCFG special authority. |
CPFBB47 D | Cluster Resource Services detected an error and may have ended abnormally. |
CPFBB48 D | Cluster Resource Services error detected. |
CPFBBA1 D | All cluster command user queues busy. |
CPFBBAB D | Node role &1 not valid. |
CPFBBB4 D | Create cluster administrative domain failed. |
CPFBBB8 D | Cluster administrative domain already exists on cluster node &1. |
CPFBBB9 D | Cluster administrative domain &1 internal error. |
Messages that are delivered through the error code parameter are listed here.
Message ID | Error Message Text |
---|---|
CPDAC07 E | System value QRETSVRSEC not set correctly. |
CPF1097 E | No authority to change certain network attributes. |
CPF1098 E | No authority to class &1 in library &2. |
CPF2634 E | Not authorized to object &1. |
CPF2697 E | The request did not complete in the time allotted. |
CPF3C1E E | Required parameter &1 omitted. |
CPF3C21 E | Format name &1 is not valid. |
CPF3C24 E | Length of the receiver variable is not valid. |
CPF3C29 E | Object name &1 is not valid. |
CPF3C39 E | Value for reserved field not valid. |
CPF3C3C E | Value for parameter &1 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. |
CPF9803 E | Not authorized to object &2 in &3. |
CPF9804 E | Object &2 in library &3 damaged. |
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. |
CPFA0AA E | Error occurred while attempting to obtain space. |
CPFA98E E | *JOBCTL special authority required to update system-level environment variables. |
CPFAA01 E | Attribute &1 for resource &2 not allowed to be monitored. |
CPFAA02 E | Resource &1 cannot be added for &2. |
CPFB0CE E | &1 special authority is required. |
CPFBB02 E | Cluster &1 does not exist. |
CPFBB09 E | Cluster node &1 does not exist in cluster &2. |
CPFBB0A E | Cluster node &1 in cluster &2 is not active. |
CPFBB0F E | Cluster resource group &1 does not exist in cluster &2. |
CPFBB20 E | Cluster partition detected for cluster &1 by cluster node &2. |
CPFBB26 E | Cluster Resource Services is not active or not responding. |
CPFBB32 E | Attributes of user queue &1 in library &1 are not valid. |
CPFBB39 E | Current user does not have IOSYSCFG special authority. |
CPFBB46 E | Cluster Resource Services internal error. |
CPFBBB5 E | Resource &1 cannot be added for &2. |
CPFBBB6 E | Library &1 not allowed for resource &2. |
Top | Server Support APIs | APIs by category |