Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
I will be heading off to live in the dorms in about 2 weeks and was informed that they monitor the bandwidth pretty heavily. 2GB d/l per day is what they say they allow roughly. Is there a way to monitor how much data I have transfered in a day? I would like to stay as close to my 2GB limit as possible because I'm paying for the connection so might as well use it. Thanks
ifconfig itself shows sent(TX) and recieved(RX) bytes since the connection was acquired, so if you dont keep your machine on 24/7, or reset your connection every 24 hours, this would make a simle way of monitoring it:
That snippet will get you the info you want neatly.. Ofcourse there is prolly some nifty program for better monitoring, but hey, thats what search engines are for, right? (;
Put up quicly a nicer output and interface to that quick grepping.. Its set up so that if you give any parameter at all, also the second interface is shown, if no parameter is given, only the first is shown. Just to show you an idea:
Not as nice as a script, and I'm not even sure of the accuracy,
but with GkrellM you can hover your mouse over the eth0
(or appropriate) NIC display window, and a small rectangle will
appear in the bottom right of that area. Then just click on the
rectangle and you will get a window pop up with statistics for
Daily, Weekly, and Monthly received, transmitted, and total.
GKrellM has a lot more configurability and can keep track of your usage over the course of a month or a week, regardless of restarts. Of course you could just as easily write up a script to keep a daily, weekly, and/or monthly total in a log somewhere.
Get creative, and be sure to let us know what you come up with.