Exporting Traffic Statistics

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Exporting Traffic Statistics

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Exporting Traffic Statistics
Exporting Traffic Statistics
2017-02-25 17:39:10
Model : VR2600

Hardware Version :

Firmware Version : 1.4.0 0.8.0 v0050.0 Build 160518 Rel. 50944n


I have been using TP-Link modem routers for a while now. Used W8980, W9980 and now VR2600. Whenever there is an internet congestion in my home LAN i try to see the culprit device since i have about 25 devices connected through the VDSL modem-router. Unfortunately, VR2600 only allows to see this info through Traffic Statistics page which also includes the LAN traffic aside from device based WAN traffic.

Better than nothing, i try to live with this. However, it would be more than nice i i could access these statistics through my iphone or a PC, without logging in to the modem. There is no way to export traffic statistics to any device. I tried syslog on my NAS, i can see system logs of the VR2600 from the NAS however, traffic statistics only resides on the modem itself.

Is there any way to export these statistics, or any other method to see the internet bandwidth consuming per device on may LAN? Will SNMP help? I also tried to reach stat.htm page directly on the modem but it gives 403 Forbidden error. every time i have to login, go through menu items and try to rmemeber which ip is which device.
  1      
  1      
#1
Options
2 Reply
Re:Exporting Traffic Statistics
2017-04-20 18:23:35
I can now get the statistics from the modem with:

curl -d $'[STAT_CFG#0,0,0,0,0,0#0,0,0,0,0,0]0,0\r\n[STAT_ENTRY#0,0,0,0,0,0#0,0,0,0,0,0]1,0\r\n' --referer http://192.168.1.1/ --header "Cookie: Authorization=Basic `echo -n password | base64`" --header "Content-Type: text/plain; charset=UTF-8" "http://192.168.1.1/cgi?1&5"

change password by your admin password. 192.168.1.1 is my modem IP. The outcome is like:
[1,0,0,0,0,0]1
ipAddress=3232235876
macAddress=XX:XX:XX:XX:XX:XX
totalPkts=525
totalBytes=45283
currPkts=0
currBytes=0
currIcmp=0
currUdp=0
currSyn=0
currIcmpMax=1
currUdpMax=20
currSynMax=14

After i parse this i will be able to use it anywhere i like.
  0  
  0  
#2
Options
Re:Exporting Traffic Statistics
2021-11-12 10:39:44 - last edited 2021-11-12 10:40:28

Hi @febz11 

 

I also have a similar situation, if I understand your query correctly.

 

I have an Archer C7 and would like the traffic statistics per MAC address to be continuously logged. The info available on the router's web page is not easy to export or work with, and it resets every time the router is reset (which happens often with electricity outages). I would like for these statistics to be continuously logged and then exported into a format similar to what you have.

 

Is this what your code did? And apologies, I'm a bit unfamiliar with networking, but where exactly would I type it - directly into a web browser on a device connected to the router?

 

Many thanks

Cameron

  0  
  0  
#3
Options