Hi there,

>
>I thought I understood how to build my printcap but now I feel real
>stupid.  I want to spool all jobs through a linux machine called "a".  I'm
>sending jobs to jetdirect interfaces in hp printers from "a".  On all
>other machines, I want them to send jobs to "a" so in these client
>machines the printcap looks like
>
>lp:\
> :sh:rm=a.asu.edu:rp=hp1:sd=/var/spool/lpd/lp:
>
>then on the server machine "a" the printcap looks like
>
>hp1:\
> :su:rm=jetdirect.asu.edu:rp=hp:sd=/var/spool/hp1:
>
>This seems to work.  However, from any client machine when I do an 
>lpq 
>
>It wants to connect directly to the jetdirect interface, rather than
>listing all the jobs on the server queue. 
>
>what am I doing wrong?

One obvious possibility:-

You've forgotten to do an 'lpc reread' to make the changes in your
configuration take effect.


You should also remember that when you issue an 'lpq' command anywhere
it does two things:-

        1) lists items in the local queue

        2) requests 'lpq' information from the 'rm' machine (if there is one)


So, on your client machines, typing 'lpq' will first list any local
print jobs, and request an 'lpq'-type status from machine 'a'.  Machine
'a' will respond by listing any locally queued printjobs, _and_ it will
query the JetDirect box for any 'lpq' infomation and report that back as
part of its response to the client.


So, you should expect 'lpq' (from a client) to look like this:-

  Printer: lp@client (dest [EMAIL PROTECTED])
   Queue: no printable jobs in queue
  JetDirect lpd: no entries


And it will have been 'a.asu.edu'that contacted the JetDirect box (not the
client machine).

        Hope this helps,


                               Mac
          Assistant Systems Adminstrator @nibsc.ac.uk
                        [EMAIL PROTECTED]
   Work: +44 1707 654753 x285      Everything else: +44 7956 237670 (anytime)

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to