> > > Is there any command line utility to get daily total ethernet
> > > inbound/outbound throughput? I'd like to generate a monthly report with
> > > shell script. Any suggestion highly appreciated.
> > 
> > you could use 'ifconfig', but then it would be smart to edit
> > /etc/init.d/networking to save the count before resetting
> > 
> How to reset the TX/RX value of ifconfig output?
> Why is it smart to save the count to /etc/init.d/networking before
> resetting? Can you give an example?

'/etc/init.d/networking restart' does something like this:
'ifdown -a; ifup -a'
executing this resets the TX/RX values
you could edit 'networking' to do something like
'ifconfig >$mylogdir/network-state-before-reset_`date +%F`;ifdown -a;ifup -a'
in order to prevent losing information
greetz,

Joris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to