We recently upgraded to LPRng 3.8.4 and IFHP 3.5.2 during a recent system
overhaul.  The following printcap entry (and MANY others like it) worked
before and doesn't now:

#Cholla - B-367
cholla|Cholla|b367
        :rp=raw
        :rm=cholla.egr.unlv.edu
        :lf=/var/lpd/log/cholla.errs
        :sd=/var/spool/lpd/cholla
        :ifhp=model=ps,pagecount
#       :bp=/usr/bin/bannerpage
        :of=/usr/local/libexec/filters/ifhp
        :af=/var/lpd/log/cholla.acct
        :filter=/usr/local/libexec/filters/ifhp

Now, what happens is most odd:
[root@student] etc# lpc status cholla
 Printer           Printing Spooling Jobs  Server Subserver Redirect
Status/(Debug)
raw@student: spool queue for 'raw' does not exist on server student
   non-existent printer or you need to run 'checkpc -f'

Note that checkpc -f doesn't find anything:
[root@student] etc# checkpc -f
[root@student] etc#

Trying to print to it:
[root@student] etc# lpr -P cholla printcap
Status Information:
 sending job 'root@student+264' to raw@localhost
 connecting to 'localhost', attempt 1
 connected to 'localhost'
 requesting printer raw@localhost
 job 'root@student+264' transfer to raw@localhost failed
  error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
  sending str '^Braw' to raw@localhost
 error msg: 'spool queue for 'raw' does not exist on server student'
 error msg: '   non-existent printer or you need to run 'checkpc -f''

Asking for it's printcap:
[root@student] etc# lpc printcap cholla
Printer: raw@student
raw@student: spool queue for 'raw' does not exist on server student
   non-existent printer or you need to run 'checkpc -f'

However, asking for ALL printcaps:
[root@student] etc# lpc printcap all
....
Printer: cholla@student
cholla|Cholla|b367
 :af=/var/lpd/log/cholla.acct
 :filter=/usr/local/libexec/filters/ifhp
 :ifhp=model=ps,pagecount
 :lf=/var/lpd/log/cholla.errs
 :lp=/dev/null
 :of=/usr/local/libexec/filters/ifhp
 :rm=cholla.egr.unlv.edu
 :rp=raw
 :sd=/var/spool/lpd/cholla
....

Specifying the printer outright:
[root@student] cholla# lpr -P cholla@student printcap
[root@student] cholla#

No errors, but no print, either.

Tried changing the printcap entry to:
#Cholla - B-367
cholla|Cholla|b367
        :[EMAIL PROTECTED]
        :lf=/var/lpd/log/cholla.errs
        :sd=/var/spool/lpd/cholla
        :ifhp=model=ps,pagecount
#       :bp=/usr/bin/bannerpage
        :of=/usr/local/libexec/filters/ifhp
        :af=/var/lpd/log/cholla.acct
        :filter=/usr/local/libexec/filters/ifhp

[root@student] cholla# lpc reread
lpd server pid 26498 on student, sending SIGHUP
[root@student] cholla#

However, still:
[root@student] cholla# lpc status cholla
 Printer           Printing Spooling Jobs  Server Subserver Redirect
Status/(Debug)
raw@student: spool queue for 'raw' does not exist on server student
   non-existent printer or you need to run 'checkpc -f'

Under both, printing causes the following in the status:
IF filter 'ifhp' filter msg - 'ifhp 15:34:36.049 [29563] Do_sync: no sync
response from printer' at 2001-12-31-15:34:36.050 ## A=<NU
LL> number=554 process=29558
IF filter 'ifhp' filter exit status 'JFAIL' at 2001-12-31-15:34:36.051 ##
A=<NULL> number=554 process=29558

And the same set of errors before.  The /only/ solution I've found is to
modify the printcap as such:
#Cholla - B-367
cholla|Cholla|b367
        :lp=/dev/null
        :lf=/var/lpd/log/cholla.errs
        :sd=/var/spool/lpd/cholla
        :ifhp=model=ps,pagecount,dev=cholla.egr.unlv.edu%9100
#       :bp=/usr/bin/bannerpage
        :of=/usr/local/libexec/filters/ifhp
        :af=/var/lpd/log/cholla.acct
        :filter=/usr/local/libexec/filters/ifhp

Then:
[root@student] etc# lpc reread
lpd server pid 26498 on student, sending SIGHUP
[root@student] etc# lpc status cholla
 Printer           Printing Spooling Jobs  Server Subserver Redirect
Status/(Debug)
cholla@student      enabled  enabled    0    none    none

And everything seems to work.  However, this solution doesn't work for some
of our printers (for a reason yet to be determined), but it's somewhat
aggrevating that :rm seems to be broken now.  I have confirmed the versions,
and there aren't old versions around (assured by the simple precident of a
reformat and reinstall).

This machine is a SPARC system, running under Solaris 8.  Solaris's print
manager has been completely removed (via pkgrm) and I have verifying LPRng's
lpd and lpc are being used.

Any help appreciated.

---
Andrew Gray
Systems Administrator
University of Nevada, Las Vegas
College of Engineering



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