[Ilugc] Net Traffic Log

  • From: bala150985@xxxxxxxxx (Balasubramaniam Natarajan)
  • Date: Mon, 25 Jun 2012 11:51:02 +0530

On Sat, Jun 23, 2012 at 11:37 PM, Harisankar P S <mailme at hsps.in> wrote:

Hey,

Is there a way to keep track of the network traffic through all the
different interface devices in my system. Or a library to do so, I want to
create a log that store the total size of file transfered since the script
or program starts running.


vnstat is also good at it.

vnstat -i eth0 -d

 eth0  /  daily

         day         rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
      05/27/12     28.17 MiB |    5.02 MiB |   33.19 MiB |    3.15 kbit/s
      05/28/12         0 KiB |       0 KiB |       0 KiB |    0.00 kbit/s
      05/29/12     20.62 MiB |    3.32 MiB |   23.94 MiB |    2.27 kbit/s


-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/

Other related posts: