> I'm finding that connecting to jetdirect with lpq is very time consuming,
> and fails frequently.  So I am thinking that it is advantageous to have
> separate :server: and :localhost: definitions in printcap.  Thus, when lpq
> -Pmylocal is queried, the client doesn't have to wait or be
> rejected.  Does anyone have any optimal way of dealing with jet direct
> printers in printcap?

I use entries in the lpd_printcap to define the server connection.
This only needs to be done on "q", my main spooling host. Example entry
from the lpd_printcap on "q" would be:

optra40|ecs-optra40:force_localhost
optra40|ecs-optra40:server
        :ss=colora
        :cm=ECS Optra 40
        :sh
        :mx=0
        :lp=L1@netgear
        :sd=/var/spool/lpd/%P
        :af=acct:lf=log:ps=status
        # only allow the following formats
        :fx=flpv

Then in the printcap file on "q" all I have to do is define the client end:

optra40|ecs-optra40
        :client
        :lp=optra40@localhost
        :sh
        # only allow the following formats
        :fx=flpv

All my client machines to the spooling machine operate in
what is termed "lightweight" mode. Meaning I build it with
./configure --disable-force_localhost, and when installed
client machines do not start lpd. All they need is an entry
in their printcap file like this:

optra40|ecs-optra40
        :client
        :lp=optra40@q
        :sh
        # only allow the following formats
        :fx=flpv

Thus nobody is ever talking to the printer directly. Any client
program queries are ultimately talking to the spooler on q.


-----------------------------------------------------------------------------
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