Hello all,
I''m using ''shorewall show accounting'' to read the
usage statistics for
several users (each with their own alias). I am looking for a way to have
increased accuracy when ''show'' displays the units. For
instance, have the
''total_traffic'' below listed in kilobytes, or even just raw
bytes.
Here is an example output:
0blade038/etc/shorewall# shorewall show accounting
Shorewall-3.0.2 Chain accounting at blade038.myserver.here - Sat Jan 28
17:02:06 GMT 2006
Counters reset Wed Jan 25 21:11:12 GMT 2006
Chain accounting (3 references)
pkts bytes target prot opt in out source
destination
86M 46G total_traffic all -- eth0 * 0.0.0.0/0
0.0.0.0/0
80M 46G total_traffic all -- * eth0 0.0.0.0/0
0.0.0.0/0
8973K 3994M lastchancehotel all -- * * 0.0.0.0/0
10.10.0.2
9339K 5424M lastchancehotel all -- * * 10.10.0.2
0.0.0.0/0
852K 481M nemesis all -- * * 0.0.0.0/0
10.10.0.3
831K 434M nemesis all -- * * 10.10.0.3
0.0.0.0/0
688K 472M ketone all -- * * 0.0.0.0/0
10.10.0.4
589K 131M ketone all -- * * 10.10.0.4
0.0.0.0/0
3221K 2264M ouroborous all -- * * 0.0.0.0/0
10.10.0.5
3012K 1015M ouroborous all -- * * 10.10.0.5
0.0.0.0/0
10816 1367K richard all -- * * 0.0.0.0/0
10.10.0.6
Is there a way to specify units? Like, bytes, kilobytes, megabytes...
I''m using it for user billing, and sub-gigabyte accuracy would be
handy?
Thanks,
Jan Mulders