|
Home > Archive > Unix administration > October 2005 > Limiting "lost connection" entries from lpd
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Limiting "lost connection" entries from lpd
|
|
|
| Hi!
I've got a print server attached to a linux box located in another
building than the linux box itself. The printers there are not switched
on all the time. So, when someone wants to print on one of these
printers, the syslog is flooded with entries like "xxx: lost
connection" with no delay.
Now I'd like to either limit these messages to, lets say 10 per printer
port, or insert some delay for those messages to appear only in 5
minute intervals. Or, if that's the only way, to suppress these
messages at all?
The print system is a BSD-style LPD. Is there a solution without
changing to another print system?
| |
| Michael Tosch 2005-10-24, 3:49 pm |
| Krk wrote:
> Hi!
>
> I've got a print server attached to a linux box located in another
> building than the linux box itself. The printers there are not switched
> on all the time. So, when someone wants to print on one of these
> printers, the syslog is flooded with entries like "xxx: lost
> connection" with no delay.
I think this is when the client improperly closes the connection to the
lpd print server. The message appears on the lpd print server.
E.g. a WindowsNT print server with an lpd gateway causes this, when
printing to the lpd print server.
>
> Now I'd like to either limit these messages to, lets say 10 per printer
> port, or insert some delay for those messages to appear only in 5
> minute intervals. Or, if that's the only way, to suppress these
> messages at all?
>
> The print system is a BSD-style LPD. Is there a solution without
> changing to another print system?
>
If the print server is Unix and uses lpd, you can do this by means
of syslogd.
man syslogd
might offer an interval spec, e.g.
syslogd -m 5
to be specified in the syslog .../rc... startup file.
Or you can turn off entire lpd logging: disable "lpr" entries
in /etc/syslog.conf (e.g. lpr.debug or lpr.err)
--
Michael Tosch @ hp : com
|
|
|
|
|