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.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
tuto:linux:voir_l_etat_de_la_bande_passante_en_ligne_de_commande [2010/04/01 20:41] – root | tuto:linux:voir_l_etat_de_la_bande_passante_en_ligne_de_commande [2011/06/04 09:58] – root | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== iftop ====== |
Ligne 23: | Ligne 23: | ||
* -c config file Spicifie un fichier de configuration alternatif | * -c config file Spicifie un fichier de configuration alternatif | ||
- | ===== Utilisation | + | ===== ittop ===== |
Il faut être root pour lancer iftop. | Il faut être root pour lancer iftop. | ||
exemple: | exemple: | ||
- | | + | < |
* Par protocole : | * Par protocole : | ||
- | | + | < |
- | iftop -f tcp | + | iftop -f icmp |
- | iftop -f udp | + | iftop -f tcp |
+ | iftop -f udp | ||
+ | </ | ||
* Par réseau : | * Par réseau : | ||
- | | + | < |
* Par ports : | * Par ports : | ||
- | | + | < |
- | iftop -f 'not port domain' | + | iftop -f 'port 80' |
+ | iftop -f 'not port domain' | ||
+ | </ | ||
* Par host : | * Par host : | ||
- | | + | < |
* Divers : | * Divers : | ||
- | | + | < |
+ | |||
+ | ===== nethogs ===== | ||
+ | |||
+ | Monitore la bande passante par processus. | ||
+ | |||
+ | nethogs -i eth0 | ||
+ | |||
+ | 25110 www-data python | ||
+ | 24484 www-data python | ||
+ | 22424 www-data python | ||
+ | 24625 www-data apache2 | ||
+ | 24538 www-data python | ||
+ | 25603 www-data apache2 | ||
+ | 26217 www-data apache2 | ||
+ | 25126 www-data apache2 | ||
+ | 21747 www-data apache2 | ||
+ | 25629 www-data apache2 | ||
+ | 24506 www-data python | ||
+ | 24465 www-data python | ||
+ | |||
+ | ====== pktstat ====== | ||
+ | |||
+ | pktstat -i eth0 -n -t | ||
+ | |||
+ | pktstat -i eth0 -n -t "port 80" | ||
+ | |||
+ | Example output: | ||
+ | < | ||
+ | interface: eth0 | ||
+ | | ||
+ | 695.0k | ||
+ | └ GET / | ||
+ | 531.0k | ||
+ | └ GET / | ||
+ | 181.2k | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ |
tuto/linux/voir_l_etat_de_la_bande_passante_en_ligne_de_commande.txt · Dernière modification : 2012/08/04 15:07 de root