Figure 3-29 depicts SNMP MIB variable retrieval in action.
Figure 3-29 SNMP MIB Variable Retrieval
— Base format to retrieve the number of errors on an interface iso org dod internet mgmt mib interface ifTable ifEntry ifOutErrors
— Specific format to retrieve the number of errors on first interface iso org dod internet mgmt mib interface ifTable ifEntry ifOutErrors Instance 1 3 6 1 2 1 2 2 1 20 0
Manager SNMP Get Request a
OBJECT IDENTIFIER = 220.127.116.11.18.104.22.168.1.20.0 SNMP Get Response 22.214.171.124.126.96.36.199.1.20.0 = 11 Port Errors
In this example, the network manager wants to retrieve the number of errors on the first interface. Starting with interface number 0, the valid range for interface numbers is 0 through the maximum number of ports minus one. The manager creates the SNMP Get Request message with reference to the MIB variable 188.8.131.52.184.108.40.206.1.20.0, which represents interface outgoing errors on interface
0. The agent creates the SNMP Get Response message in response to the manager's request. The response includes the value of the referenced variable. In the example, the agent returned value is 11, indicating that there were 11 outgoing errors on that interface.
Was this article helpful?