I would appreciate if somebody could offer assistance as I have am having
difficulity obtaining a pagecount in the accounting files. Page counters
are active on the printer. I have searched the list for similar problems
unfortunately the solutions to the relevant problems have not assisted or
do not apply in this case.

The setup is as follows:
RedHat linux 7.1 (2.4.3-12), LPRng 3.7.4-23, ifhp 3.4.7, accounting.pl
5.5,  printer = HP4050 connection via ethernet.

I have run ifhp tests and obtain the pagecount (snip) 
ifhp 15:21:53.547 [16200] Do_pagecount: pagecounter 61963 after 1 attempts
ifhp 15:21:53.548 [16200] Do_accounting: pagecounter 61963, pages 1
ifhp 15:21:53.548 [16200] Process_job: done

But using lpq after print a job the following is seen (snip)
Filter_status: pagecounter 0, pages 0 at 15:47:00.133
Filter_status: done at 15:47:00.133

snip from printcap.local
xxxx1:\
       :sh:\
       :ml=0:\
       :mx=0:\
       :sd=/var/spool/lpd/xxxx1:\
       :rm=xxxx1:\
       :lpd_bounce=true:\
       :ifhp=model=hp4050, status pagecount:\
       :as=|/usr/libexec/filters/accounting.pl start:\
       :ae=|/usr/libexec/filters/accounting.pl end:\
       :filter=/usr/libexec/filters/ifhp:\
       :af=acct

I have not altered the pagecount or status sections in accounting.pl.

/var/spool/lpd/xxxx1/acct snip
filestart '-q16357' '-p0' '-t2001-11-02-15:47:00.132'
'-Abarry@test+335' '-nbarry' '-Pxxxx1'
fileend '-b0' '-T0' '-q16357' '-p0' '-t2001-11-02-15:47:00.133'
'-Abarry@test+335' '-nbarry' '-Pxxxx1'

More information/logs can be supplied if the above is insufficient.

Many Thanks
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.
-----------------------------------------------------------------------------

Reply via email to