System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip printers not-ready/not-available from querying them using lpstat ?

LeMikeAngelo
Occasional Visitor

How to skip printers not-ready/not-available from querying them using lpstat ?

Hello HP-UX Community,

Does anyone know how to prevent lpstat from taking print queues that are offline ?

This is because such print queues takes too long to respond, hence it takes a lot of time to retrieve the corresponding information for each one of such not-available print queues in a big universe of print queues.

Any idea is welcome to get the 'lpstat -o' in a faster way, instead of stopping for an mount of time trying to reach a not-available remote/network printer.

Thanks in advance.

Miguel Angel

 

1 REPLY
Patrick Wallek
Honored Contributor

Re: How to skip printers not-ready/not-available from querying them using lpstat ?

You can try adding the '-i' option.  '-i' says it "Inhibit[s] the reporting of remote status".

So try:

 

# lpstat -i -o