Date: Tue, 24 Jun 2003 08:48:01 -0700 From: Lars Eggert <larse@ISI.EDU> To: Adam <blueeskimo@gmx.net> Cc: net@freebsd.org Subject: Re: Bandwidth monitoring Message-ID: <3EF872B1.20208@isi.edu> In-Reply-To: <1056467581.42828.26.camel@jake> References: <1056467581.42828.26.camel@jake>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Adam wrote:
> My ISP is placing strict restrictions on how much I can transfer each
> month, with high penalties for exceeding their limits. However, they
> don't provide any way for their customer's to check to see how much
> they've transferred, so we end up transferring far less than what we are
> allowed, just to make sure we avoid paying the fines for going over the
> limit.
>
> So, what I need to do is find a way to monitor my total bandwidth
> through my external NIC. My gateway is running FreeBSD 4.8 with
> ipf+ipnat.
>
> I *don't* need anything fancy. All I need is to be able to check at any
> time how much I've transferred since the first of the month. What's the
> easiest way to set up something like this? I know there are fancy
> solutions with graphs with usage stats and such, but that's not what I'm
> after.
What's wrong with netstat?
netstat -i | -I interface [-abdnt] [-f address_family] [-M core]
[-N system]
Show the state of all network interfaces or a single interface
which have been auto-configured (interfaces statically configured
into a system, but not located at boot time are not shown). An
asterisk (``*'') after an interface name indicates that the
interface is ``down''. If -a is also present, multicast
addresses currently in use are shown for each Ethernet interface
and for each IP interface address. Multicast addresses are shown
on separate lines following the interface address with which they
are associated. If -b is also present, show the number of bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
in and out. If -d is also present, show the number of dropped
^^^^^^^^^^^
packets. If -t is also present, show the contents of watchdog
timers.
Lars
--
Lars Eggert <larse@isi.edu> USC Information Sciences Institute
[-- Attachment #2 --]
0 *H
010 + 0 *H
080fErtcvE.0
*H
010 UZA10UWestern Cape10U Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H
personal-freemail@thawte.com0
000830000000Z
040827235959Z010 UZA10UWestern Cape10U Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.3000
*H
0 32c %E>nx'gڈD)c5*mp<ܮto034qmOe
KaU5u'rװ|CBPQ<9TIf - ki N0L0)U"0 010UPrivateLabel1-2970U0 0U0
*H
1KG]qSl]y=&b""I'{9$
*8PUl
LGlX1B li+@]jy.%݊
Z<D&iHΥbb090%A0
*H
010 UZA10UWestern Cape10U Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.300
020824185339Z
030824185339Z0T10
UEggert1
0U*Lars10ULars Eggert10 *H
larse@isi.edu0"0
*H
0
6Fxΰ7aED&0+Dj)ֽXCUcnleijmz~S0J jWV~ 1^({IݛLjӖ
ao:bP}WLVܱ욗cDɖ_Kv.A(W49;Z8-uXE
6b
@_0%#d`Rto5 L0R`w@7
r Hcc U3%7N_o V0T0*+e!0 00L2uMyffBNUbNJJcdZ2s0U0
larse@isi.edu0U0 0
*H
]Ȕ,fK<cjRZeLan@Z6,=
fK?yO#8+ Ni*LSfpQg<(aӒ$kTx_AL1>ގ|S090%A0
*H
010 UZA10UWestern Cape10U Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.300
020824185339Z
030824185339Z0T10
UEggert1
0U*Lars10ULars Eggert10 *H
larse@isi.edu0"0
*H
0
6Fxΰ7aED&0+Dj)ֽXCUcnleijmz~S0J jWV~ 1^({IݛLjӖ
ao:bP}WLVܱ욗cDɖ_Kv.A(W49;Z8-uXE
6b
@_0%#d`Rto5 L0R`w@7
r Hcc U3%7N_o V0T0*+e!0 00L2uMyffBNUbNJJcdZ2s0U0
larse@isi.edu0U0 0
*H
]Ȕ,fK<cjRZeLan@Z6,=
fK?yO#8+ Ni*LSfpQg<(aӒ$kTx_AL1>ގ|S100010 UZA10UWestern Cape10U Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30%A0 + 0 *H
1 *H
0 *H
1
030624154801Z0# *H
1o=
Ymǒy{D0R *H
1E0C0
*H
0*H
0
*H
@0+0
*H
(0 +710010 UZA10UWestern Cape10U Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30%A0*H
1010 UZA10UWestern Cape10U Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30%A0
*H
jcZbs\xrzZd&*&T%
\sIv@WP|?~ì*(1vAvKEFQ7/
ik#m bdF,BL:=g1RsTJ{=W%S˸
ArGr
@QN~m#P5kNW`FbsNo\`ʄXCz
ym
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EF872B1.20208>
