> From [EMAIL PROTECTED] Mon Jul 9 11:26:09 2001
> Date: Mon, 9 Jul 2001 09:18:03 +0200 (MEST)
> From: Max Ahston <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Slow "lpstat -a"
>
> I know there is a reason (there should be anyway :) ) for the LPRng lpstat
> to be much slower than the OS (Solaris) provided lpstat.
Yes. :-)
>
> Running in my old environment lpstat -a takes just under 1 second to
> complete, maybe the information isn't 100% correct? It more feels like the
> original lpstat asks the local lpd if the printer is enabled or not.
Yes/ No/ Maybe/ Version Dependent, Solaris at least
>
> When running lpstat in a lprng environment it takes a long time to
> complete. Aprox 15-25 seconds..
Ummm... This is odd...
>
> Normally it doesn't matter to much since users doesn't run lpstat -a their
> self to often :)
>
> The problem comes when they are using FrameMaker. When opening the "print
> window" in FrameMaker FM runs "lpstat -a" and outputs it to a file, then
> it lists all the printers from the file giving the users the opporunity to
> choose a printer..
>
> Is there a way to speed up the way lpstat -a works with LPRng? We have
> more then 300 queues and are growing almost each day..
The problem is that the 'lpstat' AKA 'lpq' is doing a queue by queue check=
i.e. - it opens a connection each time to query LPD for the printer status.
Now there is a way to avoid this, but it assumes that you want status for
all the printers on a SERVER:
lpstat -P all
Could you describe your configuration in a bit more detail, please?
Patrick Powell
>
> Sincerely,
>
> Max!
>
>
>
> [EMAIL PROTECTED] | [EMAIL PROTECTED]
> Ericsson Telecom | Tamira Konsult AB
>
>
>
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
>
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body. For the impatient,
> to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
> with: | example:
> subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
>
> If you have major problems, send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
>
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.lprng.com)
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------