LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   get bandwidth from host (https://www.linuxquestions.org/questions/linux-networking-3/get-bandwidth-from-host-912501/)

r_lapsus 11-08-2011 11:44 AM

get bandwidth from host
 
I need to monitor the outgoing network bandwidth per host and store it in a database. Is there any script that receives the destiny host as a parameter and then prints only de bandwidth used to the console? I have tried iftop, ntop and none of them was easy to parse the output. Thanks for your help

fukawi1 11-09-2011 04:06 AM

Sounds like "vnstat" will do what you want.

Code:

vnstat -l -ru -i ethx
-l = live
-ru = rate unit bits/bytes
-i = self explanatory

vnstat itself stores the bandwidth usage etc in a database of its own.


All times are GMT -5. The time now is 10:10 PM.