[comp.unix.aix] remote printers

wohler@sapwdf.UUCP (Bill Wohler) (03/08/91)

[pits, i wish we had a FAQ.  i know this has come up before.  --bw]

  i would appreciate it if someone could glance at the following
  remote printer configuration and see what is broken.  all i've
  done so far is to create the /etc/qconfig lines with info.
  if you need additional information, please let me know.

  alternatively, would someone like to mail me their bsd lpd.c and
  friends  they've ported to aix.

                                                --bw
                                                wohler@sap-ag.de

        ----- /etc/qconfig follows -----
rlp2:
        device = drlp2
        up = TRUE
        host = decix
        s_statfilter = /usr/lpd/aixshort
        l_statfilter = /usr/lpd/aixlong
        rq = lp2

drlp2:
        backend = /usr/lpd/rembak

        ----- output of lpq -----
Queue   Dev   Status    Job Files               User         PP %   Blks Cp Rnk
------- ----- --------- --- ------------------- ---------- ---- -- ----- -- ---
rlp2    drlp2 DOWN     
              QUEUED      1 /etc/motd           root                   1  1   1
rlp2: decix: /usr/lib/lpd: lp2: Your host does not have line printer access

	----- um, so how does one remove this guy from the queue? -----
[root@aix3:303]# lprm -
enq: (FATAL ERROR): 0781-313 Cancel all not supported on remote queues.
        Use: rsh <hostname> enq -X -P <queuename>
enq: errno = 17: Do not specify an existing file.

geo@george.austin.ibm.com (George Noren) (03/08/91)

The message:

rlp2: decix: /usr/lib/lpd: lp2: Your host does not have line printer access

Indicates that you have not enabled the local host as a printer user on
host decix. 
Go to decix, and add your host to it's "/etc/hosts.lpd" file, then issue
a kill -2 to 
the process id of the lpd daemon on that system.

Then go back to your system and start up the queue:

	qadm -U rlp2

Alternatively, to get rid of the file in the queue (it is queued on your
machine, not the
remote machine, since the remote machine is not even talking to you),
use the command:

	qcan -x 1

Where "1" is the job number as listed in your "output of lpq" insert.

Sincerely,
George Noren

My opinions, of course
+-------------------------+--------------------------------+----------------+
|AWD Early Systems Support| AIX : geo@george.austin.ibm.com|PH: 512/838-4930|
|IBM Austin - Zip 2830    | VNET: GEORGE at AUSVMQ         |TL: 678-4930    |
+-------------------------+--------------------------------+----------------+