Re: Network traffic stats
- From: Gerald Holl <gerald@xxxxxxxxxx>
- Date: Tue, 26 Sep 2006 10:52:05 +0200
jpd wrote:
Begin <newscache$4io56j$jqg$1@xxxxxxxxxxxxxx>
On 2006-09-25, Gerald Holl <gerald@xxxxxxxxxx> wrote:
[...] I would like a program that prints the total number of bytes
(maybe divided into sent and received ones) transferred over a
specific interface similar to the output of ifconfig on typical
GNU/Linux systems.
Thank the infinite wisdom of the people that brought you that for
confusing you. Interface statistics on unix systems are traditionally
shown with the netstat tool. Read its manpage to work out all the
options. For daily gathering you'd probably need some scripting glue.
There may of course be solutions floating around that do exactly that.
I'm not aware of how ``typical linux systems'' reset the count on a
daily basis as usually such tools don't unless specifically instructed.
Your preferred distribution may do something like that by default,
though.
Anyhow. Check netstat(1).
Thanks, netstat -b -I rl1 with some grep, awk and expr does exactly that
what I want.
cheers,
Gerald
.
- References:
- Network traffic stats
- From: Gerald Holl
- Re: Network traffic stats
- From: Ralf Müller
- Re: Network traffic stats
- From: mark
- Re: Network traffic stats
- From: Gerald Holl
- Re: Network traffic stats
- From: jpd
- Network traffic stats
- Prev by Date: Re: Can you compile and run this benchmark on your 3.9 system?
- Next by Date: Re: Help with Counter Strike Firewall Rules
- Previous by thread: Re: Network traffic stats
- Next by thread: Re: Network traffic stats
- Index(es):