From owner-freebsd-questions@FreeBSD.ORG Thu Jun 18 08:04:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB7D4106564A for ; Thu, 18 Jun 2009 08:04:43 +0000 (UTC) (envelope-from D.Forsyth@ru.ac.za) Received: from b.mail.ru.ac.za (b.mail.ru.ac.za [IPv6:2001:4200:1010::25:2]) by mx1.freebsd.org (Postfix) with ESMTP id 357128FC16 for ; Thu, 18 Jun 2009 08:04:43 +0000 (UTC) (envelope-from D.Forsyth@ru.ac.za) Received: from iwr.ru.ac.za ([146.231.64.249]:61337) by b.mail.ru.ac.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MHCbx-0002O6-K8 for freebsd-questions@freebsd.org; Thu, 18 Jun 2009 10:04:41 +0200 Received: from iwdf-5.iwr.ru.ac.za ([146.231.64.28]) by iwr.ru.ac.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MHCbx-0006so-Ic for freebsd-questions@freebsd.org; Thu, 18 Jun 2009 10:04:41 +0200 From: "DA Forsyth" Organization: IWR To: freebsd-questions@freebsd.org Date: Thu, 18 Jun 2009 10:04:41 +0200 MIME-Version: 1.0 Message-ID: <4A3A1139.19283.3B33E52@d.forsyth.ru.ac.za> Priority: normal X-mailer: Pegasus Mail for Windows (4.41) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: b.mail.ru.ac.za (146.231.129.34) Subject: counting pages sent to postscript printer via samba and lpd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d.forsyth@ru.ac.za List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 08:04:44 -0000 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/