Main Menu

friends

Latest articles

Hello World in python
21/10/2009 | mad mad mod

This article describes how to write and execute a "Hello World" program in Python on Linux (Fedora).  1. the prerequisitesa text editor of your choice (e.g. vi)a python interpreter
make sure you h [ ... ]


monitor I/O with iotop
11/03/2010 | mad mad mod

iotop is a nice tool to monitor I/O usage information output by the Linux kernel (requires 2.6.20 or later). To install iotop with yum as root (for RedHat / Fedora / Centos based systems only)&nb [ ... ]


Other Articles
Facebook MySpace Twitter Digg Delicious Stumbleupon Google Bookmarks 

Designed by:
SiteGround web hosting Joomla Templates
display bandwidth usage on an interface by host with iftop E-mail
sysadmin

iftop  listens to network traffic on an interface and displays the result in a nice "top-like" style. iftop does for network usage what top does for CPU usage.

 

Homepage: http://www.ex-parrot.com/pdw/iftop/

 

To install iftop with yum as root (for RedHat / Fedora / Centos based systems only)

 

[root@blackmod ~]# yum install iftop

 

Start iftop:

[root@blackmod ~]# iftop

 

 

                 12.5Kb           25.0Kb            37.5Kb           50.0Kb      62.5Kb
└────────────────┴────────────────┴─────────────────┴────────────────┴─────────────────
239.255.255.250               => 192.168.1.1                       0b      0b      0b
                              <=                                   0b      0b   1.61Kb
192.168.1.101                 => 192.168.1.1                       0b      0b     44b
                              <=                                   0b      0b     66b
192.168.1.101                 => ns2.puck.ch                       0b      0b     15b
                              <=                                   0b      0b     15b
192.168.1.101                 => 104.hosttech.eu                   0b      0b     10b
                              <=                                   0b      0b     10b



















───────────────────────────────────────────────────────────────────────────────────────
TX:             cumm:   636B    peak:    792b          rates:      0b      0b     69b
RX:                    8.99KB           17.2Kb                     0b      0b   1.70Kb
TOTAL:                 9.61KB           18.0Kb                     0b      0b   1.77Kb

 

Now, open a second terminal and generate some traffic with ping:

 

 

[mod@blackmod ~]$ ping www.google.com

 

Go back to the iftop session and  see how it looks now:

 

                 25.0Kb           50.0Kb            75.0Kb           100Kb        125Kb
└────────────────┴────────────────┴─────────────────┴────────────────┴─────────────────
192.168.1.101                 => fx-in-f104.1e100.net            672b    672b    672b
                              <=                                 672b    672b    672b
192.168.1.101                 => 62.192.15.212                     0b     61b     15b
                              <=                                   0b     61b     15b
239.255.255.250               => 192.168.1.1                       0b      0b      0b
                              <=                                   0b      0b   1.61Kb
192.168.1.101                 => marvin.testserver.li              0b      0b     15b
                              <=                                   0b      0b     15b
192.168.1.101                 => ns2.puck.ch                       0b      0b     15b
                              <=                                   0b      0b     15b

















───────────────────────────────────────────────────────────────────────────────────────
TX:             cumm:   169KB   peak:    976b          rates:    672b    733b    718b
RX:                     105KB           16.8Kb                   672b    733b   2.31Kb
TOTAL:                  274KB           17.4Kb                  1.31Kb  1.43Kb  3.01Kb

 

 

see also: http://www.madmadmod.com/sysadmin/54-how-to-get-the-current-network-bandwidth-usage-on-linux.html

 

 

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

 
mad mad mod, Powered by Joomla! and designed by SiteGround web hosting