LPDBiff - A TCP/UDP message receiver for LPRng
Hi there
I'm sure this is only one of many efforts but a fully functional, albeit
largely untested, version of LPDBiff can currently be found as
<
ftp://aragorn.uio.no/pub/LPRng/LPDBiff.tar.gz>
It supports TCP and UDP, has a man-page, has lots of switches allowing you
to configure most things and appears to work. Functionality tested with
Netcat (great program) as I haven't had time to compile and install LPRng
to test it. Let me know if you want to laugh at it, test it, maintain it,
keep it and/or all of the above. I can maintain if needed, however it is a
small trivial program so shouldn't pose any problems if you just include
it in the general LPRng distribution.
I'm, however, interested in knowing whether or not the messages it's
supposed to receive from LPRng are encoded in any way, i.e. the first byte
has special meaning or something, or if it's plain textual information.
Right now the messages are just received, prepended with the date and name
of the sender and displayed. This may or may not be what you want.
Feedback welcome.
15:14:56(pierot)~/LPR/LPDBiff 69>./LPDBiff -u
/LPDBiff [-u] [-d] [-m <single|cont[inuous]>] [-t <timeout>]
[-r <refresh>] [-s <server1,...>] [-p <port1,...>] [-P <port>]
-u Usage
-d Debug output on STDERR
-t <timeout> Drop TCP connections after T seconds
(Default 5 secs)
-m <single|cont> Single or continous messages
(Default continous)
-s <server1,...> Regexps matching valid client hosts
(Default ".*")
-p <port1,...> Regexps matching valid client ports
(Default ".*")
-P <port> Port number to listen to (Default 3456)
-r <refresh rate> Seconds to wait in select (Default 1 sec)
OK
--
Olav Kolbu (
[email protected])
System Administrator
Center for Information Technology Services/Section for Operations
University of Oslo
P.O. Box 1059 Blindern, N-0316 Oslo, Norway
Phone: +47 22 85 27 80, Fax: +47 22 85 27 30
Olav Kolbu <
[email protected]>
The LPDBiff program is a generic monitoring program. It will
open the specified TCP and UDP port, and then wait for information to
be sent. The received information is displayed in a Tk window, either
as single messages or as a scrolling list. It has lots of options,
allowing you to configure more or less what you want. For the security
conscious you can set it up to only allow connections from certain
clients and/or ports.
This program made available under the GNU GENERAL PUBLIC LICENSE,
see file COPYING for conditions of use.
NOTE: You probably need to edit the excutable and point it at your favorite
perl5 binary location.
Usage:
14:44:44(aragorn)~/LPR/LPDBiff 1> ./LPDBiff -u
/LPDBiff [-u] [-d] [-m <single|cont[inuous]>] [-t <timeout>] [-r <refresh>]
[-s <server1,...>] [-p <port1,...>] [-P <port>]
-u Usage
-d Debug output on STDERR
-t <timeout> Drop TCP connections after T seconds (Default 5 secs)
-m <single|cont> Single or continous messages (Default continous)
-s <server1,...> Regexps matching valid client hosts (Default ".*")
-p <port1,...> Regexps matching valid client ports (Default ".*")
-P <port> Port number to connect to (Default 3456)
-r <refresh rate> Seconds to wait in select (Default 1 sec)
Olav Kolbu
[email protected]