HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
QUERY_NODE_ALL
The list is not ordered by node name. However, the order remains the same for subsequent
QUERY_NODE_ALL verbs, so the application can obtain a complete list in several sections by using
multiple verbs in the normal way. For more information about how the application can obtain specific entries
from the list, see Section 2.7,
List Options For QUERY_* Verbs.
node_name
Name of the node to be used as an index into the list. This parameter is ignored if
list_options is set to
AP_FIRST_IN_LIST.
This is an ASCII string of 1–128 characters, padded on the right with spaces if the name is shorter than 128
characters.
If the computer name includes a . (period) character, SNAplus2 assumes that it is a fully-qualified name;
otherwise it performs a DNS lookup to determine the computer name.
3.145.3 Returned Parameters: Successful Execution
If the verb executes successfully, SNAplus2 returns the following parameters:
primary_rc
AP_OK
buf_size
Length of the information returned in the supplied buffer.
total_buf_size
Returned value indicating the size of buffer that would have been required to return all the list information
requested. A value greater than buf_size indicates that not all the available entries were returned.
num_entries
Number of entries returned in the data buffer.
total_num_entries
Total number of entries available. A value greater than num_entries indicates that not all the available entries
were returned.
Each entry in the data buffer consists of the following parameters:
node_summary.overlay_size
The size of the returned
node_summary structure, and therefore the offset to the start of the next entry in the
data buffer.
When your application needs to go through the returned buffer to find each
node_summary
structure in turn, it
must use this value to move to the correct offset for the next data structure, and must not use the C sizeof()
operator. This is because the size of the returned overlay may increase in future releases of SNAplus2; using
the returned overlay size ensures that your application will continue to work with future releases.
node_summary.node_name
The name of the SNAplus2 node.
node_summary.config_role
The configuration file role of the server where the node is running. For more information about configuration
file roles, refer to the HP-UX SNAplus2 Administration Guide. Possible values are:
AP_ROLE_MASTER
The server holds the master configuration file.
AP_ROLE_BACKUP
591