I do this one one of these -- here's my printcap:

Printer: ljpinter@rwja
lpcinter
 :lp=/dev/null
 :cm=Piscataway - INTERLAB - HP LaserJet 4050N (Printer 5)
 :af=/var/spool/lpd/%P/acct
 :filter=/opt/LPRng/libexec/filters/ifhp
 :ae=|/opt/LPRng/libexec/filters/accounting-umdnj.pl end
 :as=|/opt/LPRng/libexec/filters/accounting-umdnj.pl start
 :ifhp=model=hp4050,dev=130.219.192.140%9100
 :sd=/var/spool/lpd/%P

...notice my IFHP has a device, and I have no extraneous :of line.

---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630

On Fri, 16 Aug 2002, Phillip Stark wrote:

> Hi all,
>
> I am trying to set up print accounting with LPRng (3.8.14) and ifhp
> (3.5.6) using an HP LaserJet 5M and an HP LaserJet 4050N printer over
> an ethernet connection.  Printing works fine but all the pagecount
> numbers report 0.  Looking through the list archives it appears that
> some people have been successful doing print accounting with these
> printers.
>
>
> My printcap looks like:
>
> officetest:
>          :[EMAIL PROTECTED]
>          :sd=/var/spool/lpd/%P
>          :filter=/local/libexec/filters/ifhp
>          :of=/local/libexec/filters/ifhp
>
>
> The accounting file gives output such as:
>
> jobstart '-Hxxxx.xxxx.xxx' '-nphillip' '-Pofficetest'
> '-kcfA002xxxx.xxxx.xxx' '-b57439' '-t2002-08-16-12:01:55.000' '-CA'
> '-Jtext test'
>
> filestart '-q15345' '-p0' '-t2002-08-16-12:01:56.293'
> '-Aphillip@xxxx+1' '-nphillip' '-Pofficetest'
>
> fileend '-b0' '-T1' '-q15345' '-p0' '-t2002-08-16-12:01:56.302'
> '-Aphillip@xxxx+1' '-nphillip' '-Pofficetest'
>
> jobend '-Hxxxx.xxxx.xxx' '-nphillip' '-Pofficetest'
> '-kcfA002xxxx.xxxx.xxx' '-b57439' '-t2002-08-16-12:01:57.000' '-CA'
> '-Jtext test'
>
>
> (extra returns added for clarity).
>
> Note the -p0
>
> I've tried being explicit about setting the pagecount option (ie
> :ifhp=pagecount), I've also tried setting it to both ps and pjl.
> Still nothing.  Anyone have any idea what I'm doing wrong?
>
> Thanks,
> Phillip
> --
>
> *****************************************************************
> Phillip Stark
> Instructional Computing Lab Operations Manager
> University of California, Santa Cruz
>
> Got a question?  Get an answer:  http://ic.ucsc.edu/help
> *****************************************************************
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>


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