Hi Jason, Eric and Charles,

Thank you guys for all useful info. I will look at Jason's code when he
sends me and see if I can make something out of it. The way I understand is
that the data from the command Eric wrote below ("ip -s link show ppp0")
will represent the data calculated from when the machine is up and never got
reset if we do not do anything. It must be very big after sometime, right?
Mine looks like that

# ip -s link show eth0
7: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:20:af:d9:14:e3 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    1684047309 7243074  0       0       0       0      
    TX: bytes  packets  errors  dropped carrier collsns 
    375562570  4917437  0       0       0       2769   







-----Original Message-----
From: Eric Wolzak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 2:40 PM
To: Binh Do
Subject: Re: [leaf-user] Data statistics on Dachstein


You can see the amount of bytes  incomeing and outgoing with the ip -s link
show 
"interfacename"  


 ip -s link show ppp0
16: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1492 qdisc pfifo_fast qlen 
3
    link/ppp
    RX: bytes  packets  errors  dropped overrun mcast
    13167444   18555    0       0       0       0
    TX: bytes  packets  errors  dropped carrier collsns
    1586297    16948    0       0       0       0


This is  independent of the "flavour" Dachstein bering, oxygen"-

You could create a cron script that with the use of the mail command mails
this to you 
in several intervals.
So you could have a "hourely" /weekly statistics.
I don't know if there is a way to reset the counter

Regards 
Eric Wolzak 
member of the bering crew


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to