On Monday 25 February 2002 16:47, Belkie, Dan wrote: >Can anyone suggest a simple way of checking out how much data is passing >through a Nic card within a 24 hr period? > >Thanks
if you don't need to know until tomorrow, you could try: echo `grep eth0 /proc/net/dev | cut -c8-18`-`sleep 86400 ; grep eth0 /proc/net/dev | cut -c8-18` | bc (for data in) and echo `grep eth0 /proc/net/dev | cut -c19-28`-`sleep 86400 ; grep eth0 /proc/net/dev | cut -c19-28` | bc (for data out) It'll give you a negative number, but the magnatude is correct. I'm sure there is a more elegant way, and when someone sees this hack, I'm sure they'll pipe up! -- Chuck
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
