Operating System - HP-UX
1753331 Members
5340 Online
108792 Solutions
New Discussion юеВ

Re: Queues disabled ... lpstat

 
SOLVED
Go to solution
Manuales
Super Advisor

Queues disabled ... lpstat

Hi
how can i know what printer queues are disabled fast?
i know i can use lpstat and see the output, maybe it will say "ready and waiting" or "down" but i do not want to wait a lot of time if the lpstat spents a lot of time ...
i mean, for ping command you can use
/etc/ping my printer -n 1 -m 1
m = time to wait only one second .. is there any way for lpstat? or , how can I know what queues are disabled?

thanks in advance.


4 REPLIES 4
Manuales
Super Advisor

Re: Queues disabled ... lpstat

i found lpstat -p printer_name but it is not working ...
Manuales
Super Advisor

Re: Queues disabled ... lpstat

i have it:


lpstat -p | grep printer | grep -v enabled | more

and it shows what printer are down ...

Bye bye , time to sleep
Jose Mosquera
Honored Contributor
Solution

Re: Queues disabled ... lpstat

Hola,

Take note about this, if you found files into /var/spool/lp/request/ mean that isn't printing. Each time that a print request is requested two files are placed in the path above indicated, one is a header file that contains control characters for print options, and the second is the printing body by itself. So you can check the content of all directories placed under the path /var/spool/lp/request/. If some file is found it there you should check involved queues. This way avoid possible waiting times of the lpstat command, sometimes, in case of remote printers, this command do not return until have tried a number of failed retries.

Rgds.
Manuales
Super Advisor

Re: Queues disabled ... lpstat

Hola.
Thanks for your suggestion and comments.