networkAdapterState
The networkAdapterState event producer monitors the network interface of a node in the cluster.
- Overview
- The networkAdapterState event producer resides under the cluster directory and monitors the network interface of a node in the cluster. This event producer is available only when the system is part of a cluster. This event is generated when a network interface goes down or comes up.
- Capabilities
AHAFS_THRESHOLD_STATE AHAFS_REMOTE_EVENT_ENABLED AHAFS_CALLBACK_INTRCNTX
- Return codes
- The networkAdapterState 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 the ADAPTER_UP, ADAPTER_DOWN, ADAPTER_ADD and ADAPTER_DEL messages as part of its event data. It will pass the concerned INTERFACE_NAME. Also, as it is a cluster event producer it will additionally pass 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 networkAdapterState.monFactory directory.
The monitor file name
has to be used. No other monitor files may be created in this directory./aha/cluster/networkAdapterState.monFactory/networkAdapterStateEvent.mon
- Example event data
The following is event data from a networkAdapterState event with the default INFO_LVL.
BEGIN_EVENT_INFO TIME_tvsec=1271920539 TIME_tvnsec=399378269 SEQUENCE_NUM=1 RC_FROM_EVPROD=0 BEGIN_EVPROD_INFO EVENT_TYPE=ADAPTER_UP INTERFACE_NAME=en0 NODE_NUMBER=2 NODE_ID=0xF079E8C801C11DF CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404 END_EVPROD_INFO END_EVENT_INFO