Outils pour utilisateurs

Outils du site


tuto:linux:voir_l_etat_de_la_bande_passante_en_ligne_de_commande

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tuto:linux:voir_l_etat_de_la_bande_passante_en_ligne_de_commande [2010/04/01 20:42] roottuto:linux:voir_l_etat_de_la_bande_passante_en_ligne_de_commande [2012/08/04 15:07] (Version actuelle) root
Ligne 1: Ligne 1:
-====== Voir l'état de la bande passante avec iftop ======+====== iftop ======
  
  
Ligne 23: Ligne 23:
   * -c config file Spicifie un fichier de configuration alternatif   * -c config file Spicifie un fichier de configuration alternatif
  
-===== Utilisation =====+===== iftop =====
  
 Il faut être root pour lancer iftop. Il faut être root pour lancer iftop.
Ligne 47: Ligne 47:
  
   * Par host :   * Par host :
-<code>iftop-f 'host webcache.example.com'+<code>iftop -f 'host webcache.example.com'
  
   * Divers :   * Divers :
 <code>iftop -f 'port http and not host webcache.example.com'</code> <code>iftop -f 'port http and not host webcache.example.com'</code>
 +
 +===== nethogs =====
 +
 +Monitore la  bande passante par processus.
 +
 +nethogs -i eth0
 +
 +<code>
 +25110 www-data python                      eth0     464.267      9.722 KB/sec
 +24484 www-data python                      eth0       3.055      3.188 KB/sec
 +22424 www-data python                      eth0      33.251      1.388 KB/sec
 +24625 www-data apache2                     eth0       0.123      0.575 KB/sec
 +24538 www-data python                      eth0       0.090      0.153 KB/sec
 +25603 www-data apache2                     eth0       0.011      0.023 KB/sec
 +26217 www-data apache2                     eth0       0.011      0.023 KB/sec
 +25126 www-data apache2                     eth0       0.011      0.023 KB/sec
 +21747 www-data apache2                     eth0       0.011      0.023 KB/sec
 +25629 www-data apache2                     eth0       0.011      0.023 KB/sec
 +24506 www-data python                      eth0       0.000      0.000 KB/sec
 +24465 www-data python                      eth0       0.000      0.000 KB/sec
 +</code>
 +
 +====== pktstat ======
 +
 +  pktstat -i eth0 -n -t
 +
 +  pktstat -i eth0 -n -t "port 80"
 +
 +Example output:
 +<code>
 +interface: eth0
 +   bps    % desc                                                               
 +695.0k  22% tcp 207.46.13.28:80 <-> 192.168.78.242:1917
 +            └ GET /msdownload/update/v3-19990518/cabpool/windowsmedia-kb911564-
 +531.0k  17% tcp 207.46.13.28:80 <-> 192.168.78.242:1918
 +            └ GET /msdownload/update/v3-19990518/cabpool/windowsxp-kb923689-x86
 +181.2k   5% tcp 192.168.78.242:49175 <-> 78.117.211.178:7480
 + 86.6k   2% tcp 192.168.78.242:58282 <-> 79.85.212.131:22
 + 41.0k   1% tcp 192.168.78.242:2951 <-> 89.88.152.10:80
 + 32.7k   1% tcp 192.168.78.242:3143 <-> 89.88.152.10:80
 +</code>
tuto/linux/voir_l_etat_de_la_bande_passante_en_ligne_de_commande.1270154562.txt.gz · Dernière modification : 2010/04/01 20:42 de root