These are scripts I use for recording and working with (eg, graphing) network bandwidth usage. Here is what's what (as of this writing, at least). cronjob Designed to be run from cron (or moral equivalent) at whatever sampling interval you want to use. For my use, I usually run this every five minutes; if I considered more detailed data important enough to be worth five times the recorded space used, I could run it every minute. You can even run it more frequently than that, if you have a cron-like facility with sub-minute scheduling granularity, though I'm not sure all the scripst will deal well with that. This script deals with keeping multiple logfiles, one per day. (Changing that to, eg, one per week or one per month would not be difficult, but it would not be just flipping a config switch, either. Some of the other scripts might also need fiddling.) You will need to edit this script to list the interfaces you want to monitor. You do this by changing the interfaces listed in the for loop around line ten or so; the list there is just an example and is unlikely to be correct for your purposes. You will need to edit this script to change the directory name in the cd command at the beginning to match where you have installed it. genday genweek gencommon These are scripts to generate graphs. gencommon is a large blob of common code, used by the other two; it is not suitable for running on its own. The difference between genday and genweek is that genday graphs the last 24 hours; genweek the last 7*24=168 hours. (This is more than just a question of how much data to graph because it also affects X-axis labels and lines.) By default, these graph all interfaces they find in the data. You can restrict it by naming one or more interfaces as arguments, in which case any interfaces not listed will be dropped. (It is not an error to name an interface which does not appear in the data.) These scripts start repeating colours if they display more than four interfaces. You can change the list of colours by editing the ci0, co0, ci1, co1, etc, settings in gencommon; if you change the number of colours, also change ncols. gencommon depends on count and ppmplot, also available from my git repo area, and the daytime-num program in this repo. I intend to add an option to allow some kind of manual control of the Y scale; it currently is entirely automatic. You will need to edit genday and genweek to change the directory names in the cd commands at their beginnings to match where you have installed them. daytime-num.c A program for converting between YYYY-MM-DD date format and "days since 1970-01-01", and between HH:MM:SS time format and "seconds since 00:00:00". Not intended to be general-purpose. movelog An auxiliary script to move old logfiles into per-month subdirectories of per-year directories. This is done at the beginning of genday and genmonth. bytespersec.awk pktsize.awk pktspersec.awk prejumps.awk awk scripts to compute various possibly-interesting things from recorded data. They are old and little-used and, as a result, poorly maintained; they might not even work at all any more. I rarely use much but genday and genweek to look at data now. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML mouse@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B