The problem:
I wanted to monitor my Billion BiPAV 7800N ADSL modem with my SNMP monitoring tool of choice, cacti.
Unfortunately the OIDs in the SNMP MIB were not readily documented anywhere, officially or otherwise.
I did a bit of hunting and came up with the following information. Maybe someone else will find it useful.
Upstream Line Attenuation (Gauge32)
.1.3.6.1.2.1.10.94.1.1.2.1.5.2
Downstream Line Attenuation (Gauge32)
.1.3.6.1.2.1.10.94.1.1.3.1.5.2
Upstream Speed (Gauge32)
.1.3.6.1.2.1.10.94.1.1.2.1.8.2
Downstream Speed (Gauge32)
.1.3.6.1.2.1.10.94.1.1.3.1.8.2
Upstream SNR Margin (Integer)
.1.3.6.1.2.1.10.94.1.1.2.1.4.2
Downstream SNR Margin (Integer)
.1.3.6.1.2.1.10.94.1.1.3.1.4.2
Very Interesting. The 7800N that I have at firmware 1.06d has the last digit of the OIDs as .3 rather than .2
I have a 7800N with 1.06d firmware and the OIDs aren’t quite the same. The following script will extract upstream and downstream speed, snr and attenuation and stash them to a CSV (linux, assumes you have the snmp tools installed):
#!/bin/bash
# Gather stats from the router with snmpget and store them in a CSV file for analysis
# Works on the Billion Bipac 7800N with firmware revision 1.06d – other versions may
# have different paths for these keys.
# Tom Oinn, 18th November 2011
F=/home/tom/router-stats.csv
S=’snmpget -v2c -c public 192.168.0.2 iso.3.6.1.2.1.10.94.1.1.’
K=(2.1.8.3 3.1.8.3 2.1.4.3 3.1.4.3 2.1.5.3 3.1.5.3)
if [ ! -f $F ]; then echo ‘day,minute,up,down,snr_up,snr_down,attenuation_up,attenuation_down’ > $F; fi
echo -n `date +%-j`,$((`date +%-k`*60+`date +%-M`)), >> $F
for V in “${K[@]:0:$((${#K[@]}-1))}”; do echo -ne `$S$V | cut -c44-`, >> $F; done
echo `$S${K[$((${#K[@]}-1))]} | cut -c44-` >> $F
Thanks for posting the original article, reminded me that the thing supported SNMP!
Thanks for your pointers here! Sadly Billion doesn’t seem very forthcoming with information regarding SNMP capabilities of their routers. Not even in their FAQs (http://www.billion.com/support/faq/faq-adsl10.html) they do they say that your above mentioned values are supported. These entries I believe are defined in the ADSL-LINE-MIB (RFC2662). The MIB can be downloaded from here .
Just ordered my 7800N router, let’s hope it all stacks up.
Hmm, the second link doesn’t show, here it is again:
http://www.oidview.com/mibs/0/ADSL-LINE-MIB.html