From owner-freebsd-questions@FreeBSD.ORG Sun Sep 21 07:36:15 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B305C16A4B3 for ; Sun, 21 Sep 2003 07:36:15 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id A647043F75 for ; Sun, 21 Sep 2003 07:36:10 -0700 (PDT) (envelope-from sebastian.ssmoller@gmx.net) Received: (qmail 3394 invoked by uid 65534); 21 Sep 2003 14:36:08 -0000 Received: from pD9E81B7F.dip.t-dialin.net (EHLO [217.232.27.127]) (217.232.27.127) by mail.gmx.net (mp001) with SMTP; 21 Sep 2003 16:36:08 +0200 X-Authenticated: #15005775 From: sebastian ssmoller To: freebsd-questions@FreeBSD.org In-Reply-To: <20030920160939.15862.qmail@web13409.mail.yahoo.com> References: <20030920160939.15862.qmail@web13409.mail.yahoo.com> Content-Type: text/plain Message-Id: <1064155327.734.1.camel@tyrael.linnet> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 21 Sep 2003 16:42:12 +0200 Content-Transfer-Encoding: 7bit Subject: Re: ppp and downloaded MBs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 14:36:15 -0000 great script ! that's what i was looking for :) thx seb On Sat, 2003-09-20 at 18:09, jimmie james wrote: > >$ ppp -auto tdsl > >$ ppp -v /var/run/internet dial # i used "set > server > >/var/run/internet" in /etc/ppp/ppp.conf > > >logged the bytes sent and received so i could calc > the > >downloaded MB per month (cause i use MB limited dsl) > > >any ideas how to calc the downloaded MB per month ? > or >is there a > >better way to establish the internet connection using > >tdsl ? > > What I do, is use a perl sysinfo script, > (http://www.geocities.com/h2g2_jimmiejaz/sys0pl.txt) > just rename it to sys.pl and chmod 755 (runs in > console, or irc as /exec -o ... > > The only problem with it is, if you reboot, it wipes > the buffers of the info... > > The relevent lines are. (I'm using straight ppp, so > you'd have to change tun0 to your device, and count > the correct portion of netstat -i -n -b for this > part.. head -n1 | awk '{print \$10}') > > It might not be excatly what you need, but it can give > you an idea of what your transfer rate is, in and out) > > This is how it looks: > > root@fortytwo.daemon.sh FreeBSD 4.9-PRERELEASE | > Sound: AudioPCI ES1373-B at /dev/pcm0 | Memory: 167 of > 257 mb (65%)| Disk Usage(ad0): 2.0 of 6.8 gb (29%) | > GFX: 1280x960 @ 24, bpp | Net: I/O: tun0 In: 27.50M > Out: 4.09M | Uptime: 13:03, 6 users, load averages: > 2.71, 2.73, 2.78 > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >