IT猫扑网文章教程

分类分类

speedometer查看流量

2015-06-28 00:00作者:网管联盟

  wget http://excess.org/speedometer/speedometer.py

  yum install python-urwid

  chmod 755 speedometer

  ./speedometer.py -rx eth0 -c -tx eth0

  [root@fast ~]# ./speedometer.py

  Usage: speedometer [options] tap [[-c] tap]...

  Monitor network traffic or speed/progress of a file transfer.  At least one

  tap must be entered.  -c starts a new column, otherwise taps are piled

  vertically.

  Taps:

  [-f] filename [size]  display download speed [with progress bar]

  -f must be used if directly following another

  file tap without an expected size specified

  -rx network-interface display bytes received on network-interface

  -tx network-interface display bytes transmitted on network-interface

  Options:

  -i interval-in-seconds      eg. &5& or &0.25&   default: &1&

  -p  use plain-text display (one tap only)

  -b  use old blocky display instead of smoothed

  display even when UTF-8 encoding is detected

  -z  report zero size on files that don't exist

  instead of waiting for them to be created

  Python Version: 2.4

  Urwid >= 0.8.9 detected: yes  Urwid >= 0.9.1 and UTF-8 encoding detected: yes

展开全部

相关文章

说两句网友评论
    我要跟贴
    取消