On 2020-02-03 23:14, Malcolm wrote:
On Mon 03 Feb 2020 04:26:05 PM CST, Felix Miata wrote:
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it? Hi Best to see what tools your ISP offers. Does your router offer snmp, if so that would be the best place to start for stats.
Yes. I would say that SNMP on your router is by far your best chance to get something that resembles your actual bandwidth consumption. There are several tools that can do this for you. I'd suggest rrdtool or your own snmp-script. configure your router for snmp Install net-snmp and snmp-mibs: zypper in net-snmp snmp-mibs Check which interface you need to monitor. Change -c (a simple password that's called "community" and quite insecure password that's used all over the globe is "public". If you can, change it to something else) and 192.168.1.1 for your router. snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifDescr snmpwalk -c public -v 2c 192.168.1.1 IP-MIB::ipAdEntIfIndex snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets My WAN and LAN in and out are are 4 and 10. So I do: snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets.4 snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets.4 snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets.10 snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets.10 From here you build your own tool. It can be as simple as #!/bin/sh while true;do my_date=`date +'%Y%m%d'` my_time=`date +'%H:%M:%S'` in_wan=`snmpwalk -Ov -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets.4 | awk '{print $2}'` out_wan=`snmpwalk -Ov -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets.4 | awk '{print $2}'` echo $my_date,$my_time,$in_wan,$out_wan sleep 30 done Redirect that to a csv-file and import in libreoffice (or similar) and make your own stats and graphs. Mind you. The counters are 32 bit so you have to adjust for roll over. Or you go for the a bit more graphical way and use rrdtool. I use that quite freq at our servers pops. Here's a easy quick guide to follow. https://wiki.alpinelinux.org/wiki/Setting_up_traffic_monitoring_using_rrdtoo...) Or just check out rrdtools own beginners guide. https://oss.oetiker.ch/rrdtool/tut/rrd-beginners.en.html regards, -- /bengan -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org