On Thu, 22 Nov 2001, Christopher Lee wrote: > I'm attempting to do printer accounting with LPRng+ifhp. The printers in use > are all HP4000 series (be it 4000, 4050 or 4100). The Page Description > Language we are using is PCL (5 i think). > > Anyway, I've got things setup relatively smoothly so far, and printing from > an NT workstation through to the HP is working. However the *big* problem > I'm having is getting a page count back from the printer.
We have just got the following 2 printers to pagecount, our setup is slightly different in that we are using printers with ethernet cards. The key for us (patiently pointed out by Patrick Powell) was to include the lp line and remove the rm line, he also recommended removing the lpd_bounce line (works without it). We have used several different lpr's (3.7.4-23, 3.7.9, 3.8.1) with ifhp 3.4.7 and standard ifhp.conf lpd.conf lpd.perms & accounting.pl files. The clients are typically RH7.1. snip from /etc/printcap.local p1:\ :sh:\ :ml=0:\ :mx=0:\ :sd=/var/spool/lpd/p1:\ :lp=p1%9100:\ :if=/usr/libexec/filters/ifhp:\ :ifhp=model=hp4plus:\ :as=|/usr/libexec/filters/accounting.pl start:\ :ae=|/usr/libexec/filters/accounting.pl end:\ :af=acct p2:\ :sh:\ :ml=0:\ :mx=0:\ :sd=/var/spool/lpd/p2:\ :if=/usr/libexec/filters/ifhp:\ :lp=p2%9100:\ :ifhp=model=hp4050:\ :as=|/usr/libexec/filters/accounting.pl start:\ :ae=|/usr/libexec/filters/accounting.pl end:\ :af=acct The following line proved that the printer could pagecount and confirmed that the 9100 port was correct in our environment. /usr/libexec/filters/ifhp -Tmodel=hp4050,dev=www.xxx.yyy.zzz%9100,trace,debug=0 < test2.ps HTH Barry Wright ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
