Results 1 to 2 of 2

Thread: Internet Traffic?

  1. #1
    Join Date
    May 2008
    Location
    germany
    Beans
    15

    Internet Traffic?

    hi Ubuntu users,

    am new to Ubuntu.can any one tell me how to measure the internet traffic i used.

    i can use 1GB of traffic per week in my hostel ,if i cross more than 1GB my internet connection will be blocked

    present using ifconfig -a to measure, but when i reboot, counter is setting to 0.

    i want an application such that it count doesn't reset to zero on each reboot

    any ideas?

  2. #2
    Join Date
    Mar 2007
    Beans
    Hidden!
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: Internet Traffic?

    I was surprised how hard it was to find such a thing. Most of the search results I got pulled up complicated network monitors intended for network administrators.

    You might try vnstat.

    Install with:
    Code:
    sudo apt-get install vnstat
    Then initialize the database:
    Code:
    sudo vnstat -u -i eth0
    Change eth0 in that command to the name of your network interface.

    I haven't used this program much so I don't know all the details, but these commands seem useful:
    vnstat --> Shows today's usage.
    vnstat -d -->Breaks down stats by day.
    vnstat -w -->Breaks down stats by week. Probably the one you want for your situation.
    vnstat -m -->Shows stats by month.
    sudo vnstat -u --> Force an updates of the database.

    The vnstat homepage has more info here: http://humdi.net/vnstat/

    Hope that helps. It doesn't seem right for the hostel to impose that policy and not give you an easy way to check your usage.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •