Re: How to see the status of the blacklist in pen

From: Ulric Eriksson <ulric_at_siag.nu>
Date: Thu, 29 Nov 2007 08:16:10 +0100 (CET)

On Wed, 28 Nov 2007, Roberto Suarez Soto wrote:

> I'm using pen 0.15.0 (the one shipped with Debian Etch).
> Is there any form of seeing which servers are blacklisted?
> (either because they've been automatically blacklisted or
> because I've blacklisted them manually) I've tried with
> "servers" (using penctl) to see if some of the parameters
> listed means that, but I think there's none. Is there any other
> way of knowing this?

You're close. ;-) The penctl status command will dump a status
page of all servers, clients and connections in html format.
Example: Run pen like this:

pen -C 11111 -df 8080 siag.nu:80 localhost:81

Then try to access localhost:8080 from a web browser. There is
nothing on localhost:81, so server 1 will be blacklisted. View
like this:

penctl localhost:11111 status | lynx -dump -stdin

Output (will probably wrap horribly):

                                 Pen status page

    Time 2007-11-29 08:08:55, 16 servers, 0 current

    server address status port connections max soft max hard sent received weight

    0 217.151.192.87 0 80 2 0 0 3636 61857 0
    1 127.0.0.1 1196320132 81 0 0 0 0 0 0
    2 0.0.0.0 0 0 0 0 0 0 0 0
    3 0.0.0.0 0 0 0 0 0 0 0 0
    4 0.0.0.0 0 0 0 0 0 0 0 0
    5 0.0.0.0 0 0 0 0 0 0 0 0
    6 0.0.0.0 0 0 0 0 0 0 0 0
    7 0.0.0.0 0 0 0 0 0 0 0 0
    8 0.0.0.0 0 0 0 0 0 0 0 0
    9 0.0.0.0 0 0 0 0 0 0 0 0
    10 0.0.0.0 0 0 0 0 0 0 0 0
    11 0.0.0.0 0 0 0 0 0 0 0 0
    12 0.0.0.0 0 0 0 0 0 0 0 0
    13 0.0.0.0 0 0 0 0 0 0 0 0
    14 0.0.0.0 0 0 0 0 0 0 0 0
    15 0.0.0.0 0 0 0 0 0 0 0 0

Active clients

    Max number of clients: 2048

    client address age(secs) last server connects sent received
    0 127.0.0.1 3 0 2 61857 3636

Active connections

    Number of connections: 256 max, 2 used, 1 last

    connection downfd upfd pending data down pending data up client server
    0 5 6 0 0 0 0
    1 7 8 0 0 0 0

Ulric
Received on Thu Nov 29 2007 - 08:16:12 CET

This archive was generated by hypermail 2.2.0 : Thu Nov 29 2007 - 08:16:12 CET