Home > Research > 6LoWPAN MIB Testbed

6LoWPAN MIB Testbed

March 8th, 2013

A LOWPAN-MIB implementation, based on <draft-schoenw-6lowpan-mib-03>, 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: 6lowpan-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:6lowpan-mib.eecs.jacobs-university.de:1610 1

The current LOWPAN-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-LOWPAN-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

Typically, the following should be listed:

1. $HOME/.snmp/mibs
2. /usr/local/share/snmp/mibs

Copy the downloaded JACOBS-SMI.txt and JACOBS-LOWPAN-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-LOWPAN-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:6lowpan-mib.eecs.jacobs-university.de:1610 1

This should give you an output that looks similar to:

lowpanReasmTimeout.0 = Gauge32: 3 seconds
lowpanInReceives.0 = Counter32: 2941
...
...
...
lowpanOutDiscards.0 = Counter32: 0
lowpanOutTransmits.0 = Counter32: 505

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

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

This will provide an output similar to:

.1.3.6.1.4.1.30982.1.3.1.1.0 = Gauge32: 3 seconds
.1.3.6.1.4.1.30982.1.3.1.2.0 = Counter32: 2990
...
...
...
.1.3.6.1.4.1.30982.1.3.1.28.0 = Counter32: 0
.1.3.6.1.4.1.30982.1.3.1.29.0 = Counter32: 557
Tags:
Comments are closed.