Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lpstat - % column

Status
Not open for further replies.

shoux

Technical User
Nov 9, 2000
83
MY

Hi all,

The following is the snap-shoot from lpstat command (aix 5.2). The % column doest no show any number. Why ?

Thanks for your help !

#lpstat –pps01
queue Dev Status Job Files User PP % Blks Cp Rnk
------------------------- ---------- ---- -- ----- --- ---
ps01 psit0 SENDING 485 err.log user1 25946 1 1
ps01: no entries


shoux
 
It's a remote queue, so AIX doesn't have that information.

The "no entries" line is the response that AIX received concerning the remote queue's status. If this never changes, it could mean that the wrong queue status filters are being used. You can use "smitty pq_chque" to check/change the filters. Most non-AIX lpd servers will respond correctly to the bsdshort and bsdlong filters.

Even with the correct filters, you might not get page counts (PP) or % feedback.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
AIX does not provide the info for remote queue ? correct me if i'm wrong. is there any option..

Thanks

shoux
 
AIX doesn't have DIRECT knowledge of what's going on with the remote queue, because it is, after all, remote.

What the qdaemon does is ask the remote queue "what's going on?". The format of the returned information can vary, so AIX uses filters to extract the information and massage it into it's own standard format for remote queues. If the remote queue is sends back a BSD style status (which a majority of remote queues will) and AIX is using the filter intended for interpreting the status returned by another AIX machine (which is the default filter), then the filter is not going to find anything to report.

Try changing the filters the way I described in my first post and see what your lpstat output looks like. You can always change them back.

Depending on the type and status of the remote queue, you could see more than one line beginning with "ps01:", each with a piece of information about the queue. Xyplex Maxservers, for instance, show the name of the queue on the Xyplex (not necessarily the same as the AIX name), its port on the server, its status, and a few other things, along with any jobs that are queued and their status.

Even with the correct filters, though, AIX cannot tell you the percentage complete or page count if the remote device/server doesn't provide that information in its status reports.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
It slipped my mind before that the filters are shell scripts.

Looking in /usr/lib/lpd/bsdshort, the PP and % fields are hard coded to 0, so you won't be able to see that information for BSD style remote queue devices, ever.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top