Unix Technical Forum

Measure Internet usage

This is a discussion on Measure Internet usage within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I simply would like to measure how many Megabytes per day/month I download and upload from/to the Inernet. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 02:10 PM
Filippo
 
Posts: n/a
Default Measure Internet usage

Hi,

I simply would like to measure how many Megabytes per day/month I download
and upload from/to the Inernet.

netstat -s and my dsl modem interface show me how many packets have been
transmitted and received since uptime, but packets quantity doesn't tell me
anything about the quantity.

simply speaking, I would like something like the kppp log (either graphical
or console).

Is there any command already included in 10.2 or any program to install?

thx for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 02:10 PM
Alan_C
 
Posts: n/a
Default Re: Measure Internet usage

Filippo <no.spam@here.ok> writes:
> I simply would like to measure how many Megabytes per day/month I download
> and upload from/to the Inernet.


http://community.smoothwall.org/foru...pic.php?t=9920

http://community.smoothwall.org/foru...ic.php?t=10140

??

they use graphs made i think by Perl and GD Graph

and, what hands off to the mentioned graph maker, I do not know. But
whatever it is is what can tell the used amount of bandwidth.

AFAIK the Smoothwall logs bandwidth useage even without that
particular mod.

If you find out, please reply here so I can learn what it is that makes
it happen.

--

Alan_CU b c n u
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 02:11 PM
Jens
 
Posts: n/a
Default Re: Measure Internet usage

Filippo wrote:
> Hi,
>
> I simply would like to measure how many Megabytes per day/month I download
> and upload from/to the Inernet.
>
> netstat -s and my dsl modem interface show me how many packets have been
> transmitted and received since uptime, but packets quantity doesn't tell me
> anything about the quantity.
>
> simply speaking, I would like something like the kppp log (either graphical
> or console).
>
> Is there any command already included in 10.2 or any program to install?


With iptraf (which is included in slackware) you can monitor traffic per
interface or even per protocol/port. It runs in a terminal window,
however, so it doesn't have fancy graphics. I used to start iptraf at
boot time on a virtual console.

ifconfig also gives you the downloaded/uploaded bytes per interface.

Jens
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 02:11 PM
NoSleep
 
Posts: n/a
Default Re: Measure Internet usage

On Sun, 22 Jan 2006 14:39:00 +0100, Filippo wrote :

> I simply would like to measure how many Megabytes per day/month I download
> and upload from/to the Inernet.


[snip]

>
> Is there any command already included in 10.2 or any program to install?


I like the Bandwidth Monitoring section of Webmin, http://www.webmin.com.
It just adds some 'log' rules to an IPTables script, and you can see the
output as a list by date, protocol, port etc of how much was down/uploaded
over a specified timeframe.

NoSleep.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 02:11 PM
Jeremiah DeWitt Weiner
 
Posts: n/a
Default Re: Measure Internet usage

Jens <not-a-valid-address@onlinehome.de> wrote:
> With iptraf (which is included in slackware) you can monitor traffic per
> interface or even per protocol/port.


Hey, that's pretty spiffy. I never knew about that one. I was
going to suggest ntop (http://www.ntop.org), which is pretty similar,
but is accessed through a browser. It also does some nice graphing and
statistical breakdown of port usage, packet size, etc.

--
Oh to have a lodge in some vast wilderness. Where rumors of oppression
and deceit, of unsuccessful and successful wars may never reach me
anymore.
-- William Cowper
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 02:11 PM
Filippo
 
Posts: n/a
Default Re: Measure Internet usage

Jens wrote:

> With iptraf (which is included in slackware) you can monitor traffic per
> interface or even per protocol/port. It runs in a terminal window,
> however, so it doesn't have fancy graphics. I used to start iptraf at
> boot time on a virtual console.
>
> ifconfig also gives you the downloaded/uploaded bytes per interface.


thanks to everybody for the suggestions.
actually something quick and simple, even if it is command line, is better
for me.
I have tried iptraf, and it is fine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 02:11 PM
Filippo
 
Posts: n/a
Default Re: Measure Internet usage

Jens wrote:

> ifconfig also gives you the downloaded/uploaded bytes per interface.


ifconfig is good as well, thanks
just one question: "RX bytes" are calculated since I have installed the
system, or since last boot up?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 02:11 PM
Paul Kinsler
 
Posts: n/a
Default Re: Measure Internet usage

Filippo <no.spam@here.ok> wrote:
> Jens wrote:


> > ifconfig also gives you the downloaded/uploaded bytes per interface.


> ifconfig is good as well, thanks
> just one question: "RX bytes" are calculated since I have
> installed the system, or since last boot up?


Beware of relying on this measure ... it can wrap, as I found
when transferring N gig of files from one maching for another.

--
#Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 02:11 PM
Filippo
 
Posts: n/a
Default Re: Measure Internet usage

KDE users: I have just found this utility:

http://www.kde-apps.org/content/show.php?content=16264

for the previous version there is a Slackware package:

http://prdownloads.sourceforge.net/k...6.tgz?download
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 02:11 PM
Filippo
 
Posts: n/a
Default Re: Measure Internet usage

Paul Kinsler wrote:

> it can wrap


sorry, what does it mean?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com