Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2009 14:25:02 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Toni Schmidbauer <toni@stderror.at>, freebsd-questions@freebsd.org
Subject:   Re: measure traffic caused by pppd (UMTS)
Message-ID:  <20090318132502.GA10563@rebelion.Sisis.de>
In-Reply-To: <20090318085711.GA3105@rebelion.Sisis.de>
References:  <20080502094646.GA3576@rebelion.Sisis.de> <87wslu811h.wl%pinhead@bluebook.stderror.at> <20090318085711.GA3105@rebelion.Sisis.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
El día Wednesday, March 18, 2009 a las 09:57:11AM +0100, Matthias Apitz escribió:

> El día Friday, May 16, 2008 a las 10:08:26PM +0200, Toni Schmidbauer escribió:
> 
> > At Fri, 2 May 2008 11:46:46 +0200,
> > Matthias Apitz wrote:
> > > Sometimes when I travel around and can't see any usable WLAN I'm using
> > > the UMTS and PPPD, which works well but of course one must pay for this;
> > 
> > mb=`netstat -ib|awk '/tun0.*Link/ {mb=($6+$9)/1024^2; printf "%.2f",mb}'`
> > date=`date "+%s`
>              ^
> I think there is a typo in your script;
> and for me the fields of the netstat output are $7 and $10:

No, I was wrong with 7 and 10; I was testing the script with a Wifi
interface iwi0; for ppp0 it is 6 and 9 because the MAC addr field is
empty; sorry;


	matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz@oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090318132502.GA10563>