Register APPN Topology Information (QNMRGTI) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Register APPN Topology Information (QNMRGTI) API causes the requested APPN topology information to be reported. The application calling this API may request the current copy of the entire database (to be reported to the specified user space), or may register for information about particular types of ongoing updates to the topology (to be reported to the registered queue), or both.

A queue handle is returned by this program when a queue is successfully registered for topology updates. The queue handle identifies a registered queue, and must be used when the Deregister APPN Topology Information (QNMDRGTI) API is called. The queue handle is unique to a specific job.

When a queue is registered for ongoing topology updates, the specified types of updates for which the queue is registered will be asynchronously enqueued on an ongoing basis. If current topology is also requested on the application calling this API, the current topology is reported to the user space before topology updates are reported to the registered queue.

The QNMRGTI API may be called to request the current topology only (without updates), updates only (without current topology), or both current topology and updates. This is determined by the options specified in the options parameter.

If an application program calling the API requests current topology, and the complete topology data cannot be returned in the user space, an error is returned. In this situation, the user space header contains a P in the information status field indicating partial but accurate data. Even if a user space error such as this occurs, any queue registered on the API call will remain registered.


Authorities and Locks

User Space Authority
*CHANGE

User Space Library Authority
*EXECUTE

Queue Authority
*CHANGE

Queue Library Authority
*USE

User Space Lock
*EXCLRD

Required Parameter Group

Queue handle
OUTPUT; BINARY(4)

A variable that uniquely identifies the registered queue within the job. This value is returned when a queue is registered. When the *CURRENT value is the only option specified in the options parameter, 0 is returned.

Options
INPUT; Array OF CHAR(10)

An array structure containing options specifying the topology information to be reported. These options only apply to topology updates. All deletions are reported regardless of the type of updating information you want.

One or more of the following values must be specified:


Number of options
INPUT; BINARY(4)

The number of options specified in the options parameter. Valid values are 1 through 6.

Format
INPUT; CHAR(8)

The content and format of the topology information reported. The valid values are:


Qualified user space name
INPUT; CHAR(20)

The user space that is to receive current topology information. This parameter is ignored when the *CURRENT value is not specified on the options parameter. The first 10 characters specify the user space name, and the last 10 characters specify the library name.

The following special values are supported for the library name:


Qualified queue name
INPUT; CHAR(20)

The queue that is to receive requested topology information. This parameter is ignored when the *CURRENT value is the only option specified on the options parameter. The first 10 characters specify the queue object name, and the last 10 characters specify the library name.

The following special values are supported for the library name:

When special values are used for the library name, the actual name will be substituted when the API is called. The actual name will be used in future references to the object when topology updates are enqueued.

The following considerations apply to the queue specified on the API call:

  • The queue object must exist when this API is called.

  • There is no restriction that prevents applications in separate jobs from registering the same queue object. Therefore, each application should ensure it registers a unique queue to prevent duplicate topology updates from being reported to the same queue. For example, specifying a queue in library QTEMP ensures the queue is not being used by other jobs on the system.

  • The maximum entry length of the queue must be at least 128 bytes.

  • The sequence of the queue must be *FIFO.

  • A data queue defined with FORCE(*YES) is allowed, but is discouraged due to degraded performance.

  • A data queue defined with SENDERID is allowed, but the application is responsible for ensuring sufficient record length to handle the additional data on queue elements.

Queue type
INPUT; CHAR(10)

The type of queue object. This parameter is ignored when *CURRENT is the only value specified on the options parameter.

Otherwise, one of the following values must be specified:


Replacement Registration
INPUT; CHAR(10)

Whether this registration should replace a previous registration that has the same qualified queue name and type. This parameter is ignored when *CURRENT is the only value specified on the options parameter.


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 the Generated List

The user space is used to report current topology information and consists of:

For details about the user area and generic header, see User spaces. For details about the other items, see the following sections. For a detailed description of each field in the information returned, see Field Descriptions.

Input Parameter Section

Header Section

APPN0100 Format

The format of topology entry data is the same for queue entries reported on the registered queue for topology updates and deletions as for list entries reported to the user space for the current topology.

For topology entries reported to the user space, the entry ID field contains the value that indicates a current topology entry.

For topology entries reported to the registered queue, the entry ID field contains a value that identifies the type of notification reported:

The format of the topology entry is described below. See Field Descriptions for descriptions of the fields in this format.

APPN0200 Format

See Field Descriptions for descriptions of the fields in this format.



Field Descriptions

Controller description object name. The name of the controller description object for the transmission group. This field is valid only when the number of associated transmission group entries field is not zero. The object name is only available for transmission group entries associated with the local node, and only when the object currently exists on the local system. When the object name is not available, this field contains blanks.

DLC signaling information. The data link control (DLC) signaling information related to the link connection network. For token ring, the first 6 bytes is the MAC address, and the seventh byte is the link layer service access point address. This field is valid only when the number of associated transmission group entries field is not zero.

Entry ID. The type of topology information. The possible values are listed below. Value 00 is always used in topology entries reported to only the user space.

The other three values are used for topology entries reported to the registered queue.

Entry type. The type of queue entry.

This field can contain the following special value:

Format name specified. The format name specified to the API.

Length of DLC signaling information. The length of the data link control (DLC) signaling information. This field is valid only when the number of associated transmission group entries field is not zero. The value is 7 for token ring (only DLC currently allowed), or 0 when there is no DLC signaling information available.

Length of local node network-qualified control point name. The length of the node network-qualified control point name. Valid range is 3-17.

Length of node network-qualified name. The length of the node network-qualified name.

Length of transmission group destination network-qualified name. The length of the transmission group destination network-qualified control point name. When the number of associated transmission group entries is zero, this value is zero. When the number of associated transmission group entries is not zero, valid values range from 3 through 17.

Local node control point name. The control point name for the local node.

Local node network ID. The network ID for the local node.

Local node network-qualified control point name. The network-qualified control point name for the local node, in the format NETID.CPNAME.

Local node type. The APPN node type of the local node. The valid values are:

Local node type enumeration. A number representing the APPN node type of the node. The valid values are:

Local topology database flow reduction sequence number. The flow reduction sequence number (FRSN) incremented each time the local network node sends a topology database update. This field is valid only when the local node type is a network node.

Node attributes. The attributes of the node. See Format of Node Attributes Field for the structure. For format APPN0100, the data in this field is valid only when the node data valid indicator field is Y. For format APPN0200, the data in this field is valid only when the node type enumeration is not 0.

Node control point name. The control point name for the node.

Node data valid indicator. Whether values contained in the format APPN0100 node type and attributes fields are valid. The valid values are:

Node entry time left. The number of days left before the node entry is deleted from the topology database. This field in the APPN0200 format is valid only when the node type enumeration is not 0.

Node flow reduction sequence number. The flow reduction sequence number (FRSN) for the node. This field in the APPN0200 format is valid only when the local node is a network node and the node type enumeration is 1 or 3 (the node is a network node or virtual node).

Node and transmission group FRSN numbers are not broadcast on topology data updates (TDUs) and not duplicated on every network node in the network. Each network node keeps its own node and transmission group FRSN for each node and transmission group in the topology database. FRSNs are used to minimize TDU exchanges with adjacent network nodes.

Node network ID. The network ID for the node.

Node network-qualified control point name. The network-qualified control point name for the node, in the format NETID.CPNAME.

Node type. The APPN node type of the node. This field in the APPN0100 format contains blanks when the node data valid indicator field is N. The valid values are:

There is no distinction made between APPN end nodes and low-entry networking (LEN) nodes. Any node defined as a LEN node is reported as *EN.

Node type enumeration. A number representing the APPN node type of the node. This field is used only for format APPN0200. The valid values are:

Number of associated transmission group entries. The number of transmission group (TG) entries reported for a node. When this value is not zero, the specified number of associated transmission groups are reported for the node. The first associated transmission group entry is reported on the same entry as the initial node entry, and any additional transmission groups are reported on subsequent entries.

Number of end nodes reported. The total number of end nodes returned in the list (end node entries containing valid node data).

Number of nodes deleted since local node initialized. The number of node entries deleted from the topology database since the local node was initialized.

Number of nodes reported. The total number of node entries returned in the list (entries containing valid node data).

Number of transmission groups deleted since local node initialized. The number of transmission group entries deleted from the topology database since the local node was initialized.

Number of transmission groups reported for all end nodes. The total number of associated transmission groups returned in the list owned by end nodes.

Number of transmission groups reported for all network and virtual nodes. The total number of associated transmission groups returned in the list owned by network nodes and virtual nodes.

Reserved. An ignored field.

Transmission group characteristics. The transmission group (TG) characteristics. See Format of Transmission Group Characteristics for the structure. This field is valid only when the number of associated transmission group entries field is not zero.

Transmission group destination control point name. The control point name for the transmission group (TG) destination node. This field is blank when the number of associated transmission group entries field is zero.

Transmission group destination network ID. The network ID for transmission group (TG) destination node. This field is blank when the number of associated transmission group entries field is zero.

Transmission group destination network-qualified control point name. The network-qualified control point name for the transmission group destination node, in the format NETID.CPNAME. This field is blank when the number of associated transmission group entries field is zero.

Transmission group entry time left. The number of days left before the transmission group entry is deleted from the topology database. This field in the APPN0200 format is valid only when the number of associated transmission group entries field is not zero.

Transmission group flags. The format of the transmission group flags data is described in Format of Transmission Group Flags Field. This field is valid only when the number of associated transmission group entries field is not zero.

Transmission group flow reduction sequence number. The flow reduction sequence number (FRSN) for the transmission group. This field in the APPN0200 format is valid only when the number of associated transmission group entries field is not zero, the local node is a network node, and the transmission group reported is owned by a network node or virtual node.

Node and transmission group FRSN numbers are not broadcast on topology data updates (TDUs) and not duplicated on every network node in the network. Each network node keeps its own node and transmission group FRSN for each node and transmission group in the topology database. FRSNs are used to minimize TDU exchanges with adjacent network nodes.

Transmission group number. The transmission group (TG) number. This field is valid only when the number of associated transmission group entries field is not zero.

Timestamp. The machine timestamp (time of day) when reported.

Timestamp of list data. The machine timestamp of the list data.

Timestamp when local node initialized. The machine timestamp when the local node was initialized. The local node is initialized at initial program load (IPL) time and when the APPN node type changes.

User space library name specified. The user space library name specified to the API.

User space library name used. The actual user space library name used to report data.

User space name specified. The user space name specified to the API.

User space name used. The actual user space name used to report data.


Format of Node Attributes Field

The format of the node attributes field is described below.



Format of Transmission Group Flags Field

The format of the transmission group flags data is described below.



Format of Transmission Group Characteristics

The format of the transmission group (TG) characteristics data is described below.



Error Messages



API introduced: V2R3

[ Back to top | Network Management APIs | APIs by category ]