Tuesday, July 30, 2013

What do SNMP MIB table indexes stands for ?

Dear All,
I just came across a problem where I need to access MIB tables. For accessing any table in SNMP at least one index is there. So what is this index?
Here meaning of index is same as book index you find at the end of the books.
So every table leafs has a OID(Object Identifier which gives the location of managed object data in the MIB tree data structure) and all index must be appended in sequential order to the get the actual row data in the table. For example take interface table with entry OID(.1.3.6.1.2.1.2.2.1) in standard MIB-II. To access a row in the interface table you need to append interface number to the leaf OID. Like you want to access interface description of second interface then you need query OID (.1.3.6.1.2.1.2.2.1.2.2) using GET SNMP commands. Other way to fetch entire MIB table is to use GetTable command. Although GetTable command is not a standard command but many SNMP implementation like(NetSNMP, SNMP4J etc) support it.

No comments:

Post a Comment