LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 08-08-2004, 01:18 AM   #1
Chibo
LQ Newbie
 
Registered: May 2004
Posts: 14

Rep: Reputation: 0
Tracking Total Bandwidth Usage for Month


I'm looking for a program that will track total bandwidth usage per month on FreeBSD... Something like vnstat is for linux (http://humdi.net/vnstat/) Any recommendations? Thanks
 
Old 08-08-2004, 01:42 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Have you taken a look at netstat? It is part of the default install and allows you to see how many bytes in and out of an interface.

Example: netstat -I xl0 -b

Note: I do not know at what point the numbers roll over (if ever) or if there is a way to zero the count after you read it. I am currently at a windows machine and unable to test this.

It is a start at the very least.

Edit: You might also be interested in
/usr/ports/net/bmon
Which appears similar to the old tool you were using.

Last edited by frob23; 08-08-2004 at 01:45 AM.
 
Old 08-08-2004, 01:47 AM   #3
Chibo
LQ Newbie
 
Registered: May 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks, I suppose I could take those figures and update every few minutes, somewhat like vnstat does. Thanks
 
Old 08-08-2004, 01:56 AM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Well, netstat has a wait option (just put -w 180 on the end of the command line above to wait three minutes then output again). But it isn't very pretty or user friendly.

netstat -I xl0 -b -w 5

That will show you an updated display every 5 seconds (the byte count will start with the total then be the number since the last line)
 
  


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
Multicount in PHP , displays visits on current day, week, month, year and total visit xbaez Programming 1 04-24-2005 02:50 AM
total bandwidth usage chongluo Linux - General 9 09-26-2004 08:32 PM
Tracking internet usage with iptables mdkelly069 Linux - Networking 7 09-13-2004 11:13 AM
SQL question - total bytes per month ganninu Programming 7 01-06-2004 10:46 AM
tracking network usage of clients...recommendations? Pauly Linux - Networking 4 02-23-2002 12:09 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration