Main Menu

friends

Banner

Latest articles

backup / restore mysql databases with mysqldump
29/12/2009 | mad mad mod

Backup the database

# mysqldump --opt -u username -p password -r mydb.dump mydb


Please note: Redirection does not capture UTF characters properly, while the -r option does (--result-file). I found this  [ ... ]


setting up a very simple samba server on Linux (Fedora)
24/07/2009 | mad mad mod

This article describes how to set up a very simple Windows share on Linux (Fedora). 1. Install samba (you have to run this commands with root privileges)  [root@blackmod ~]# yum install sam [ ... ]


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