RPL MIB Testbed

A RPL-MIB implementation, based on draft-sehgal-roll-rpl-mib-06, has been completed for the Contiki SNMP agent. An AVR Raven mote has been deployed for testing the MIB and is reachable via the following information:

Hostname: rpl-mib.eecs.jacobs-university.de
Port: 1610

If using the Net-SNMP tools, you can retrieve all the MIB objects by using the following:

$ snmpwalk -v 1 -c public udp6:rpl-mib.eecs.jacobs-university.de:1610 1

The current RPL-MIB implementation is hosted under the Jacobs University private enterprise OID number. As such, in order to render the numeric OIDs you must install the JACOBS-SMI and JACOBS-RPL-MIB modules.

To use these MIB modules with Net-SNMP tools, you must first copy them to a location that Net-SNMP checks. In order to list your current Net-SNMP search path you can use the following:

$ net-snmp-config --default-mibdirs

The returned path typically includes $HOME/.snmp/mibs and /usr/local/share/snmp/mibs. Copy the downloaded JACOBS-SMI.txt and JACOBS-RPL-MIB.txt files to the $HOME/.snmp/mibs folder.

Now that the files are copied, you must instruct Net-SNMP to load these MIB modules by default. In order to do so, create the snmp.conf file in the $HOME/.snmp folder with the following contents:

mibs +JACOBS-SMI
mibs +JACOBS-RPL-MIB

After saving this file, you may use Net-SNMP to display the rendered OID output by using the following:

$ snmpwalk -v 1 -Os -c public udp6:rpl-mib.eecs.jacobs-university.de:1610 1

This should give you an output that looks similar to:

rplDefaultDISMode.0 = INTEGER: send(2)
rplDefaultDISMessages.0 = Gauge32: 1
...
...
...
rplMsgStatsOutMsgs.131 = Counter32: 0
rplMsgStatsOutMsgs.138 = Counter32: 0

If you wish to turn off the OID rendering, then you can use the following:

$ snmpwalk -v 1 -On -c public udp6:rpl-mib.eecs.jacobs-university.de:1610 1

This will provide an output similar to:

.1.3.6.1.4.1.30982.1.2.1.1.1.0 = INTEGER: send(2)
.1.3.6.1.4.1.30982.1.2.1.1.2.0 = Gauge32: 1
...
...
...
.1.3.6.1.4.1.30982.1.2.1.9.1.3.131 = Counter32: 0
.1.3.6.1.4.1.30982.1.2.1.9.1.3.138 = Counter32: 0