Aparna Appaiah wrote:
> Dear List,
> 
> I am using the MTNL Triband broadband service with Debian Sarge. I
> connect to the modem using DHCP, and get on and off by using
> 
> /etc/init.d/networking (start|stop)


Try bridged mode(instead of DHCP) to get a PPP session.


> Now, I am looking for an unobtrusive way of measuring how many bytes I
> use up every session,


Everytime PPP session ends, the ip-down script is called with
environment variables BYTES_SENT and BYTES_RCVD set as per that
session. Simply 'cat' that to a log file with timestamp.

For more details: man pppd, adsl-setup

Amish
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to