<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
> Bring a supposed "heavy user" I ought to reset the counters on my
firewall<br>
> at the beginning of next month and see how much I really use.<br>
<br>
Folks with Tomato routers can easily see a chart of how much bandwidth
they use.<br>
<br>
I use a Linux box as a router, and I recently installed a package
called "vnstat". It simply wakes up every 5 minutes and jots down the
current number of bytes sent and received on each interface. Check out
this output.<br>
<br>
Alan<br>
<br>
----<br>
<br>
<tt>root@bender:~$ vnstat -h # hourly<br>
eth0
11:55 <br>
^
r <br>
|
r <br>
|
r <br>
| r
r r <br>
| r r
r r <br>
| r r r
r r <br>
| r r r
r r <br>
| r r r
r r <br>
| r r r
r r <br>
| t r r r r r r
r r <br>
-+--------------------------------------------------------------------------->
<br>
| 12 13 14 15 16 17 18 19 20 21 22 23 00 01 02 03 04 05 06 07 08 09
10 11 <br>
<br>
h rx (kB) tx (kB) h rx (kB) tx (kB) h rx (kB)
tx (kB) <br>
12 3548 6202 20 2397 1360 04
79643 3152<br>
13 311 250 21 11456 1377 05
1590 388<br>
14 1062 9819 22 13451 3365 06
353 242<br>
15 342 242 23 2762 3699 07
10271 510<br>
16 272 236 00 2424 4044 08
606 360<br>
17 55461 7024 01 2412 4034 09
47114 2813<br>
18 61238 4178 02 3084 5304 10
3125 2151<br>
19 5084 2183 03 2215 3072 11
59412 3701<br>
<br>
root@bender:~$ vnstat -d # daily<br>
<br>
eth0 / daily<br>
<br>
day rx | tx | total<br>
------------------------+-------------+----------------------------------------<br>
05.04. 359.80 MB | 31.64 MB | 391.44 MB %%%%%%%%%%%:<br>
06.04. 407.80 MB | 38.80 MB | 446.60 MB %%%%%%%%%%%%%:<br>
07.04. 653.96 MB | 111.96 MB | 765.92 MB
%%%%%%%%%%%%%%%%%%%%%::::<br>
08.04. 381.40 MB | 59.57 MB | 440.96 MB %%%%%%%%%%%%::<br>
09.04. 613.92 MB | 144.83 MB | 758.75 MB
%%%%%%%%%%%%%%%%%%%:::::<br>
10.04. 439.69 MB | 59.27 MB | 498.97 MB %%%%%%%%%%%%%%::<br>
11.04. 207.74 MB | 29.27 MB | 237.01 MB %%%%%%:<br>
------------------------+-------------+----------------------------------------<br>
estimated 414 MB | 58 MB | 472 MB<br>
<br>
root@bender:~$ vnstat -m # monthly<br>
<br>
eth0 / monthly<br>
<br>
month rx | tx | total<br>
-------------------------+--------------+--------------------------------------<br>
Apr '09 2.99 GB | 475.34 MB | 3.46 GB
%%%%%%%%%%%%%%%%%%%:::<br>
-------------------------+--------------+--------------------------------------<br>
estimated 8.55 GB | 1.33 GB | 9.87 GB<br>
<br>
root@bender:~$ <br>
</tt><br>
<br>
<br>
<br>
<br>
</body>
</html>