Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN

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

Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN
Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN
2022-02-04 05:47:07 - last edited 2022-02-08 01:03:51

Hello TP-Link

 

 

I wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my Local Area Network. Do you have any snmp command to query such requests?

 

The idea is I will send any snmp request to the TL-R605 router and reply back to my machine the bandwidth usage of a particular device on the network.

 

Please teach me, this is my email address enzotechcomputersolutions@gmail.com.

 

  0      
  0      
#1
Options
5 Reply
Re:Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN
2022-02-04 13:15:53 - last edited 2022-02-08 01:03:51

@EnzoConqueror .

 

You can utilize standard snmpget command for reading the values of the TL-R605 LAN interface.

You can follow this thread on how to calculate the bandwidth from the absolute values you've read:

https://serverfault.com/questions/535875/how-to-monitor-per-port-bandwidth-using-snmp

If this was helpful click once on the arrow pointing upward. If this solves your issue, click once the star to mark it as a "Recommended Solution".
  0  
  0  
#2
Options
Re:Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN
2022-02-04 14:04:24 - last edited 2022-02-08 01:03:51

@terziyski 

 

Thanks terziyski. By the way what port number do I need to connect.? Thanks

4433 is open.
1723 is open.
443 is open.
80 is open

  0  
  0  
#3
Options
Re:Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN
2022-02-04 14:10:48 - last edited 2022-02-08 01:03:51

@EnzoConqueror 

 

You should query the router on port UDP 161 for SNMP.

Here are some more examples for you:

https://stackoverflow.com/questions/5253396/how-do-i-collect-bandwidth-utilization-data-on-remote-devices-switches-servers
https://stackoverflow.com/questions/38393404/how-to-get-the-bandwidth-of-network-flowing-through-a-port-using-snmp-c-sharp

 

 

If this was helpful click once on the arrow pointing upward. If this solves your issue, click once the star to mark it as a "Recommended Solution".
  0  
  0  
#4
Options
Re:Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN
2022-02-04 14:51:04 - last edited 2022-02-08 01:03:51
Hello terziyski what is the read and write community of this device TL-R605. Trying to connect using sockets but it doesn't reply.
  0  
  0  
#5
Options
Re:Wanted to Create C/C++ program to monitor the bandwidth usage of devices connected on my LAN
2022-02-04 15:01:17 - last edited 2022-02-08 01:03:51

@EnzoConqueror 

 

SNMP read/write community is that what you've set in your web management interface:

 

 

Refer to your TL-R605 user guide - Chapter 5 - SNMP to configure the SNMP feature properly and then do the tests.

If this was helpful click once on the arrow pointing upward. If this solves your issue, click once the star to mark it as a "Recommended Solution".
  0  
  0  
#6
Options

Information

Helpful: 0

Views: 1398

Replies: 5

Related Articles