$ vnstat --help vnStat 1.11 by Teemu Toivola -q, --query query database -h, --hours show hours -d, --days show days -m, --months show months -w, --weeks show weeks -t, --top10 show top10 -s, --short use short output -u, --update update database -i, --iface select interface (default: eth0) -?, --help short help -v, --version show version -tr, --traffic calculate traffic -ru, --rateunit swap configured rate unit -l, --live show transfer rate in real time See also "--longhelp" for complete options list and "man vnstat".
demo:
[root@linux ~]# vnstat -m eth0 / monthly month rx | tx | total | avg. rate ------------------------+-------------+-------------+--------------- Mar '12 4.02 GiB | 34.05 GiB | 38.06 GiB | 119.21 kbit/s Apr '12 8.92 GiB | 49.92 GiB | 58.85 GiB | 190.45 kbit/s May '12 9.28 GiB | 72.52 GiB | 81.80 GiB | 256.19 kbit/s Jun '12 12.94 GiB | 119.32 GiB | 132.26 GiB | 428.02 kbit/s Jul '12 24.23 GiB | 207.53 GiB | 231.76 GiB | 725.85 kbit/s Aug '12 30.54 GiB | 202.16 GiB | 232.69 GiB | 728.78 kbit/s Sep '12 45.72 GiB | 195.62 GiB | 241.34 GiB | 781.07 kbit/s Oct '12 57.53 GiB | 203.98 GiB | 261.51 GiB | 819.03 kbit/s Nov '12 65.30 GiB | 258.21 GiB | 323.51 GiB | 1.05 Mbit/s Dec '12 26.11 GiB | 93.76 GiB | 119.88 GiB | 1.09 Mbit/s ------------------------+-------------+-------------+--------------- estimated 75.47 GiB | 271.00 GiB | 346.47 GiB | [root@linux ~]#
补充:vnstat是一个Linux下的网络流量监控软件,通过记录指定网卡每日的传输流量日志(非基于网络包的过滤,而是分析文件系统 /proc)并可按周、月、日显示流量信息,vnStat无需root的权限就可使用。
<完>