HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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