Table of Contents
IPv6 sensors
Current IPv6 prefix is 2001:660:f183:c001::/64 (mtx-130) 2001:660:3013:3::/64.
There is a demo page.
Unfortunately, these sensors are a mit sensitive. If they are put on a wild network like that of Inria, the tend to shut down after a while.
Prerequisites
IPv6 enabled net-SNMP suite
- installation on FreeBSD 5.2.1:
mehani@tweety:/usr/ports/net-mgmt/net-snmp$ sudo make WITHOUT_PERL=yes install clean
PoE switch configuration
We have a Netgear GSM7312 administrable switch.
AAAAAAAAAAAAAAHHHHHHHHH no PoE !
Sensor A (temperature/humidity)
- MAC: 00:02:CB:01:73:C7
- IPv6: PFX:202:cbff:fe01:73c7
Temperature:
mehani@vision:~$ snmpget -v 1 -c public udp6:PFX:202:cbff:fe01:73c7 1.3.6.1.4.1.282.16.109.1.1.1.3.0 getaddrinfo: Name or service not known SNMPv2-SMI::enterprises.282.16.109.1.1.1.3.0 = INTEGER: 278
Humidity
mehani@vision:~$ snmpget -v 1 -c public udp6:PFX:202:cbff:fe01:73c7 1.3.6.1.4.1.282.16.109.1.1.1.4.0 getaddrinfo: Name or service not known SNMPv2-SMI::enterprises.282.16.109.1.1.1.4.0 = INTEGER: 134
Play with RRDTool
A shell script using snmpget and rrdtool to collect data and build graphs is in the GForge repository.
And the daily temperature and humidity graph of wherever the sensor looks like so:
Or the full report page.
Sensor B (acceleration)
- MAC: 00:02:CB:01:73:B7
- IPv6: PFX:202:cbff:fe01:73b7
The following needs shaking the sensor.
mehani@vision:~$ while : ; do > snmpget -v 1 -c public udp6:PFX:202:cbff:fe01:73b7 1.3.6.1.4.1.282.16.109.1.1.1.5.0 2>/dev/null | sed "s/.*: /X: /" > snmpget -v 1 -c public udp6:PFX:202:cbff:fe01:73b7 1.3.6.1.4.1.282.16.109.1.1.1.6.0 2>/dev/null | sed "s/.*: /Y: /" > done X: -8026 Y: -5716 X: -8141 Y: -6270 X: -8313 Y: -6037 X: -7940 Y: -6154 X: -6880 Y: -5862 X: -1376 Y: -4433 X: -4873 Y: -2479 X: -1146 Y: 991 X: 659 Y: 2100 X: 1204 Y: 2275 X: 573 Y: -3354 X: -745 Y: -2420 X: -544 Y: -2420 X: -1548 Y: -3091 X: -4300
Sensor C (direction)
- MAC: 00:02:CB:01:73:C9
- IPv6: PFX:202:cbff:fe01:73c9
mehani@vision:~$ while : ; do > snmpget -v 1 -c public udp6:PFX:202:cbff:fe01:73c9 1.3.6.1.4.1.282.16.109.1.1.1.7.0 2>/dev/null | sed "s/.*: /Dir: /" > done Dir: 191 Dir: 118 Dir: 118 Dir: 117 Dir: 114 Dir: 112 Dir: 107 Dir: 97 Dir: 79 Dir: 77 Dir: 77 Dir: 83 Dir: 87 Dir: 91 Dir: 94 Dir: 98 Dir: 100 Dir: 103 Dir: 97 Dir: 109 Dir: 117 Dir: 126 Dir: 133 Dir: 131 Dir: 131 Dir: 126 Dir: 116 Dir: 111 Dir: 106 Dir: 111
Sensor D (GPS)
- MAC: 00:02:CB:01:58:53
- IPv6: PFX:202:cbff:fe01:5853
mehani@vision:~$ snmpget -v 1 -c public udp6:PFX:202:cbff:fe01:5853 1.3.6.1.4.1.282.16.109.1.1.1.2.0 getaddrinfo: Name or service not known SNMPv2-SMI::enterprises.282.16.109.1.1.1.2.0 = STRING: "GPS"
