Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 1997 13:34:21 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Adrian Chadd <adrian@psinet.net.au>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Grabbing throughput stats within pppd.
Message-ID:  <19970826133421.40085@lemis.com>
In-Reply-To: <Pine.LNX.3.91.970826113404.13734A-100000@wisdom.psinet.net.au>; from Adrian Chadd on Tue, Aug 26, 1997 at 11:36:26AM %2B0800
References:  <Pine.LNX.3.91.970826113404.13734A-100000@wisdom.psinet.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 26, 1997 at 11:36:26AM +0800, Adrian Chadd wrote:
> Hi.
>
> For the pppd-clued people, is there a way I can grab the IP bytecount in and
> out on the ppp interface? I'd much prefer a bytecount in and out on the
> IP packets, if thats possible.. but if I have to resort to just bytecounts
> on the interface, that will have to do.

Well, it's not what you asked for, but it might do.  Try this:

$ netstat -bin   
Name  Mtu   Network       Address            Ipkts Ierrs     Ibytes    Opkts Oerrs     Obytes  Coll
lp0*  1500  <Link>                               0     0          0        0     0          0     0
ep0   1500  <Link>      00.a0.24.37.0d.2b       52     0       6610       46     1       7918     0
ep0   1500  192.109.197   192.109.197.137       52     0       6610       46     1       7918     0
tun0  1500  <Link>                            1214     0     573214     1210     0     128684     0
tun0  1500  192.109.197.1 192.109.197.137     1214     0     573214     1210     0     128684     0
tun0  1500  139.130       139.130.136.133     1214     0     573214     1210     0     128684     0
sl0*  552   <Link>                               0     0          0        0     0          0     0
ppp0* 1500  <Link>                               0     0          0        0     0          0     0
ppp1* 1500  <Link>                               0     0          0        0     0          0     0
lo0   16384 <Link>                             332     0      44515      332     0      44515     0
lo0   16384 127           127.0.0.1            332     0      44515      332     0      44515     0

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970826133421.40085>