Linux: Get Realtime Bandwidth Statistics Using Stock Commands

By Daniel Miessler on November 15th, 2006: Tagged as Linux | Sysadmin

5 Comments »

  1. Thanks. But is it not easier to add a bandwidth monitor to one’s Gnome panel?

    Comment by Aleksandersen — 11/15/2006 @ 2:53 am

  2. I have been using bwm-ng (http://www.gropp.org/?id=projects&sub=bwm-ng) but I’ll give your command a try.

    Comment by Iain — 11/15/2006 @ 4:30 am

  3. I believe the point was to be able to monitor network activity without installing anything.

    Personally, I prefer using the -s switch to ifconfig, like so:

    $ watch -n1 ifconfig -s eth0

    …which outputs something like this:

    Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth0 1500 0 104129 0 0 0 107071 0 0 0 BMRU

    …but it’s in a mono space font so all the columns line up.

    Comment by Tim — 11/15/2006 @ 5:30 am

  4. for Debian (at least for Debian etch) that should be MiB

    Comment by birlinn — 11/16/2006 @ 1:09 pm

  5. Thanks, I should have mentioned that. :)

    Comment by Daniel Miessler — 11/16/2006 @ 1:12 pm

RSS Feed For This Post...
This Post's TrackBack URI

Leave a Comment...