4.5 Querying Interface Status Through MIB
This example illustrates the use of the RPC methods defined in this specification to get the status information for an interface on the RRAS server on which no multicast protocol is running.
The client calls the RPC method RMIBEntryGet (section 3.1.4.30) with the following parameters:
The DIM_HANDLE (section 2.2.1.1.6) that the client obtains during initialization (section 3.1.3).
The dwPid specifies the protocol ID that exported the variable (0x00000002) because the status is being requested.
The dwRoutingPid specifies the routing protocol that exported the variable (10000) IP.
When the client calls the RPC method as previously described, the RRAS server returns ERROR_SUCCESS. Additionally, the following parameter values are updated:
The pInfoStuct pointer to an opaque data structure DIM_MIB_ENTRY_CONTAINER (section 2.2.1.2.19).
The dwMibOutEntrySize in the pointer to DIM_MIB_ENTRY_CONTAINER.
The pMibOutEntry in the pointer to DIM_MIB_ENTRY_CONTAINER will point to MIB_OPAQUE_INFO (section 2.2.1.2.52).
The dwId in MIB_OPAQUE_INFO will be set to 0x00000002.
The dwIfIndex in MIB_IFSTATUS (section 2.2.1.2.30). The index that identifies the interface.
The dwAdminStatus will indicate the administrative status as UP.
The dwOperationalStatus will indicate the operational status as UP.
The bMHbeatActive will be zero (0).