counting pages sent to postscript printer via samba and lpd
DA Forsyth
d.forsyth at ru.ac.za
Thu Jun 18 08:04:44 UTC 2009
Hiya all.
I'm busy reading the manual on this, but am wondering if anyone has
tips and howtos available.....
I took delivery of our new color laser printer, a CP1515n, HP
networked color laser. since this thing is not exactly cheap to run
I want to count pages per user, and since I have failed miserably to
get this right when using PCL drivers, I'm thinking I can do it with
Postscript drivers..... but first, the system....
Our Samba server hosts all printers (from a user perspective), and
feeds the data directly to the print servers (FreeBSD minial install)
for some printers, or directly to the printer for the other directly
networked HP laser printer (PCL6). This works fine, in fact very
well, and a log of jobs per person is available (each person being an
authorized samba user).
I have just installed the PS drivers on my XP PC and printed to the
printer via the samba server with a simple printcap setup...
cp1515|CP1515n Color Laserjet:\
:sh:ff=:\
:lp=:\
:sd=/var/spool/lpd/cp1515:\
:lf=/var/log/lpd/lpd-cp1515errs:\
:ss=/var/log/lpd/stat-cp1515:\
:rm=xxx.yyy.zzz.aaa:\
:rp=RAW:
That means I have a record of *jobs* in the stat-cp1515 file, but
what I need is a page count for each job.
tips?
(PS: I tried to set up LPng some time ago and somehow completely
failed to get it to work and ended up just uninstalling it. I'd
really like to stay with stock lpd)
--
DA Fo rsyth Network Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/
More information about the freebsd-questions
mailing list