ThorstenS
25.12.06, 00:53
Schau mal in die vnstat manpage, du kannst mittels --dumpdb die Werte in einem zum parsen geeigneten Format ausgeben lassen.
# vnstat rx / tx / total / estimated eth0: yesterday 240.39 MB / 855 MB / 1095 MB today 395.06 MB / 2065 MB / 2460 MB / 2520 MB ppp0: yesterday 872.49 MB / 2431 MB / 3304 MB today 2057 MB / 2822 MB / 4880 MB / 5000 MB # vnstat -m eth0 month rx | tx | total ------------------------+---------------+--------------- Nov '06 32818 MB | 61848 MB | 94667 MB Dec '06 30041 MB | 66299 MB | 96340 MB ------------------------+---------------+--------------- estimated 40563 MB | 89521 MB | 130084 MB # vnstat -d eth0 day rx | tx | total ------------------------+-------------+-------------- 10.11. 2079 MB | 5981 MB | 8060 MB 11.11. 6130 MB | 7727 MB | 13858 MB 12.11. 5095 MB | 6917 MB | 12013 MB 13.11. 4124 MB | 7016 MB | 11140 MB 14.11. 2414 MB | 4080 MB | 6495 MB 15.11. 2707 MB | 3541 MB | 6249 MB ... 19.12. 113 MB | 3552 MB | 3665 MB 20.12. 85.50 MB | 1581 MB | 1667 MB 21.12. 17.55 MB | 159.23 MB | 176.79 MB 22.12. 240.39 MB | 855 MB | 1095 MB 23.12. 395.06 MB | 2065 MB | 2460 MB ------------------------+-------------+-------------- estimated 404 MB | 2114 MB | 2518 MB