Subject: Re: Tool for processing "ipmon" output
To: Matthias Scheler <firstname.lastname@example.org>
From: Herb Peyerl <email@example.com>
Date: 02/26/1999 19:17:01
firstname.lastname@example.org (Matthias Scheler) wrote:
> is there a tool which can process "ipmon" output? I would e.g. like to
> know how many traffic is caused by certain network services.
"gratuitous quick hack warning!"
I cheat and have a cgi on an oracle server and run this script every 15
minutes... It's just for fun; I don't do anything serious with it.
Oh, btw, I use ipfstat output; not ipmon. So I guess it's not exactly
what you're looking for.
ipfstat -ai -ao | sed "
s/count [a-z][a-z]* on [a-z][a-z0-9]* from any //
s/ count [a-z][a-z]* on [a-z][a-z0-9]*//
s/ to any//
s/ from /\&direction=1\&address=/
s/ to /\&direction=0\&address=/
" | (ipf -z -f /etc/ipf.conf >/dev/null ; sort +2) | while read A
echo $A | /usr/local/bin/nc oraclehost 8080