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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remote printer setup shows 3 queue entries

Status
Not open for further replies.

rcbatlinux

Technical User
Mar 30, 2001
80
0
0
US
Hi,

I created a remote queue in smit for a Sharp printer. This is setup as a "BSD" printer. Host name is specified in the /etc/hosts file, printing to PORT1, and queue name is SH.

Below is qconfig entry:

SH:
device = @sals
up = TRUE
host = sals
s_statfilter = /usr/lib/lpd/bsdshort
l_statfilter = /usr/lib/lpd/bsdlong
rq = PORT1
@sals:
backend = /usr/lib/lpd/rembak



When doing an lpstat


SH @sals READY
SH: Down (No Paper)
SH PORT1 READY


SH "isn't down". It prints fine. But why does it show 3 times and any idea why it would it would state that there is "No Paper"?

 

You know that the first line is for the local queue, and the next output is from the remote queue as formatted by /usr/lib/lpd/bsdshort. Reveiw this to see what is sent back from the printer.

/usr/lib/lpd/bsdshort is simply an AWK script that is formatting what it get's back from the print server. It is likely your print server is not really a BSD print server, but it could be. The easiest way to see what is being sent back is to do an iptrace in the following way.

Start the trace:
iptrace -p 515 -a -b -s <aix_ip> -d <print_ip> /tmp/prt.trc

Next do the lpstat

lpstat -vSH

Then kill the trace
ps -ef | grep iptrace
kill <PID_from_ps>

Then format the data:

ipreport -n /tmp/prt.trc > /tmp/prt.rpt

Look through this and you will see everything sent back from the printer and you can compare to the output of your command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top