High Availability Monitors Version A.03.02 Release Notes

NOF API Verbs (ACTIVATE_SESSION to OPEN_FILE)
CONNECT_NODE
Chapter 3 147
CONNECT_NODE
An application uses this verb in order to establish communications with
a SNAplus2 node (active or inactive). The verb returns a handle
identifying the node, which the application can then use on other NOF
verbs to indicate the target for the verb. The application should always
issue DISCONNECT_NODE for any open node handles before it exits.
The CONNECT_NODE verb can also be issued on a HP-UX client
computer as well as on a server; this allows you to use SET_CS_TRACE,
QUERY_CS_TRACE, SET_TRACE_FILE, and QUERY_TRACE_FILE
to control client-server tracing for the client. See the descriptionsof these
verbs for more information. No other NOF verbs can be issued to client
computers.
VCB Structure
typedef struct connect_node
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char node_type; /* which node to connect to */
unsigned char node_name[64]; /* name of Node */
AP_UINT32 target_handle; /* handle for subsequent verbs */
unsigned char node_status; /* node status */
} CONNECT_NODE;
Supplied Parameters
The application supplies the following parameters:
opcode
AP_CONNECT_NODE
node_type
To connect to a particular node in order to manage the
node's configuration, set this parameter to
AP_SPECIFIED_NODE.
To connect to the node currently acting as the central
logger, set this parameter to AP_CENTRAL_LOGGER.