Differences

This shows you the differences between two versions of the page.

users:oliviermehani:2007ie:ipv6sensors [2009/12/10 17:47]
Olivier Mehani Page moved from users:oliviermehani:ipv6sensors to users:oliviermehani:2007ie:ipv6sensors
users:oliviermehani:2007ie:ipv6sensors [2011/02/10 14:08] (current)
Line 1: Line 1:
 +====== IPv6 sensors ======
 +Current IPv6 prefix is <del>2001:660:f183:c001::/64 (mtx-130)</del> 2001:660:3013:3::/64.
 +There is a [[http://fylvestre.inria.fr/ipv6-sensors/|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 ====
 +  *[[https://gforge.inria.fr/frs/download.php/1527/net-snmp-5.4-1.pkg.tar.gz|5.4 package for ArchLinux]] ;
 +  * installation on FreeBSD 5.2.1:
 +<code>
 +  mehani@tweety:/usr/ports/net-mgmt/net-snmp$ sudo make WITHOUT_PERL=yes install clean
 +</code>
 +
 +==== 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:
 +<code>
 +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
 +</code>
 +
 +Humidity
 +<code>
 +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
 +</code>
 +
 +
 +
 +
 +==== Play with RRDTool ====
 +A shell script using ''snmpget'' and ''rrdtool'' to collect data and build graphs is [[https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/ipv6/sensors/rrdtool/rrd-temp.sh?root=mehani&view=auto|in the GForge repository]].
 +
 +And the daily temperature and humidity graph of wherever the sensor looks like so:
 +
 +{{ http://fylvestre.inria.fr/ipv6-sensors/th_day.png?nocache }}
 +
 +Or the [[http://fylvestre.inria.fr/ipv6-sensors/|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.
 +<code>
 +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
 +</code>
 +
 +
 +
 +
 +===== Sensor C (direction) =====
 +  * MAC: 00:02:CB:01:73:C9
 +  * IPv6: PFX:202:cbff:fe01:73c9
 +
 +<code>
 +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
 +</code>
 +
 +
 +===== Sensor D (GPS) =====
 +  * MAC: 00:02:CB:01:58:53
 +  * IPv6: PFX:202:cbff:fe01:5853
 +
 +<code>
 +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"
 +</code>
 +
 +===== References =====
 +  - [[https://www.nautilus6.org/confidential/doc/tc-demo-sensorsetup-20040709-KuntzR.txt|R. Kuntz, Howto setup IPv6 sensors]] ;
 +  - [[https://www.nautilus6.org/confidential/doc/tc-demo-sensor-20040309-KeisukeUehara.pdf|Demo sensors (MIB structure)]].