[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PFtop monitor
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: PFtop monitor
- From: Ben Goren <ben_(_at_)_trumpetpower_(_dot_)_com>
- Date: Sat, 16 Nov 2002 09:40:40 -0700
On Sat, Nov 16, 2002 at 09:56:06AM -0500, Jason Dixon wrote:
> I just tossed together a quick top-like monitoring script for
> your pf firewalls. It displays the output of "pfctl -s info" at
> one second intervals (by default). It does not accept any user
> input... just ctrl-C to quit.
No neeed to write a perl script for this kind of thing. Watch over
my shoulder for any length of time and you'll find me doing
something like this:
$ while :; do clear; date; echo; df -hi; sleep 2; done
Of course, the ``df -hi'' will change to whatever it is that I'm
interested in watching.
I've seen some Linux systems that have a facility called ``watch''
that does the same basic thing, but it seems rather a bit of
overkill to have a whole program devoted to a shell one-liner.
Cheers,
b&
--
Ben Goren
mailto:ben_(_at_)_trumpetpower_(_dot_)_com
http://www.trumpetpower.com/
icbm:33o25'37"N_111o57'32"W
[demime 0.98d removed an attachment of type application/pgp-signature]
Visit your host, monkey.org