Skip to main content
Home Forums Can I monitor I/O of my ethernet? — #4 Can I monitor I/O of my ethernet? — #4
Post #4 by Camelot
Post
Quote:
Originally posted by voodoo:
Hey, thanx! I guess this gives some clue about amount of traffic.

Is there a way to see from what time this count is, I mean netstat -s told me I had received 477437467 bytes, but it doesn't tell me from what time.

So I have no way of knowing through that command ??? Or am I missing something?


AFAIK the numbers are based on when the system was last booted. At least, I don't know any other way of resetting the stats.

There are various products around that will graph usage over time, with MRTG being one of the best known. I've never run it under Mac OS X but it's all perl-based, so there shouldn't be much problem.

The trouble with these graphs, though is that you want total volume transferred in MB, which can be difficult to extract from a time graph.

Your best bet may be a cron task that filters the current bytes transferred from netstat. Running it daily at midnight, for example, and subtracting the previous day's figure would give you the total volume transferred the previous day.
mp.ls