nodeAddress
The nodeAddress event producer monitors the network address of the node.
- Overview
- The nodeAddress event producer resides under the cluster directory and monitors the network address of the node. This event producer is available only when the system is part of a cluster. This event is generated for example, when an alias is added or removed from a network interface.
- Capabilities
AHAFS_THRESHOLD_STATE AHAFS_REMOTE_EVENT_ENABLED AHAFS_CALLBACK_INTRCNTX
- Return codes
- The nodeAddress returns 0 as the return code. Only if the cluster is removed AHAFS_CLUSTER_REMOVE (-1) is returned.
- Event producer message
- This event producer passes ADDRESS_ADD and ADDRESS_DELETE messages as part of its event data. It will pass the INTERFACE_NAME, of the concerned interface and the FAMILY, ADDRESS and NETMASK of the IP address. Also, as it is a cluster event producer it will additionally pass the NODE_NUMBER, NODE_ID and CLUSTER_ID information.
- Acceptable monitor files
- To monitor for changes in the list of nodes, a monitor file should
be created under the nodeAddress.monFactory directory. The
monitor file name
has to be used. No other monitor files may be created in this directory./aha/cluster/nodeAddress.monFactory/nodeAddressEvent.mon
- Example event data
The following is event data from a nodeAddress event with the default INFO_LVL.
BEGIN_EVENT_INFO TIME_tvsec=1271922254 TIME_tvnsec=9053410 SEQUENCE_NUM=0 RC_FROM_EVPROD=0 BEGIN_EVPROD_INFO EVENT_TYPE=ADDRESS_ADD INTERFACE_NAME=et0 FAMILY=2 ADDRESS=0x0A0A0A0A NETMASK=0xFF000000 NODE_NUMBER=2 NODE_ID=0xF079E8C801C11DF CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404 END_EVPROD_INFO END_EVENT_INFO