LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-08-2011, 11:44 AM   #1
r_lapsus
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
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
 
Old 11-09-2011, 04:06 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Host to Host OpenSWAN IPSEC bandwidth EricTRA Linux - Networking 2 01-14-2015 02:53 AM
Virtual host bandwidth usage monitoring apache paranoid times Linux - Software 2 03-12-2010 07:44 AM
Is there a way to measure QLA bandwidth at the host? markseger Linux - General 0 06-10-2008 05:44 AM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 01:52 PM
LImiting bandwidth per-host...with a NAT router burntoutjoy Linux - Networking 1 11-10-2003 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration