Limiting "lost connection" entries from lpd
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Limiting "lost connection" entries from lpd




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Limiting "lost connection" entries from lpd  
Krk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 08:49 PM

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?






[ Post a follow-up to this message ]



    Re: Limiting "lost connection" entries from lpd  
Michael Tosch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 08: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:16 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register