So I'm trying to turn my department into something that can better justify the costs I incur to the company.
 
I've got a budget largely figured out, and I can charge everything back to the users for most of their expenses (each PC costs $X.  If you need 4 monitors, then I'll tack on an additional $Y, need a scanner?  $Z, etc) Prices will include averaged support costs, and other behind the scenes costs (Servers, Communications costs, etc)
 
I'd like to be able to charge back for toner and paper.  But I can't quite figure it out.
 
Clients print from a Windows box to Samba, and ultimately, the job is procesed via CUPS.
 
What I'd like to do is charge based on the printer the person uses, and the number of pages they print.  So that I'd bill more to print 100 pages on the color laser than to print 100 on the 4si.
 
I can find the printer the person printed to, as well as the job ID, and the userID of the person who did the printing, but I can't find either the size or the number of pages.  Either would be fine.  Maybe it's a config problem on my side.  All CUPS devices are simply RAW queues, with output formatted by the desktop.
 
Is there a way to log the size of the print job in addition to logging the other info?  I'm running Cups 1.1.18-r4 on Samba 2.2.8a on a Gentoo Linux 2.4.19 Kernel.
 
My output currently looks like ( /var/log/cups/page_log )
 
Central1 kanderson 6546 [08/Apr/2003:13:32:28 -0600] 1 1
Color1 kanderson 7552 [16/Apr/2003:13:30:30 -0600] 1 1
Origination1 kanderson 8254 [25/Apr/2003:08:59:54 -0600] 1 1
Accounting2 kanderson 12800 [27/May/2003:08:47:49 -0600] 1 1
Accounting2 kanderson 12801 [27/May/2003:08:47:51 -0600] 1 1
I think the 2 numbers on the right should be # of pages, and then number of copies.  Both are always 1 though.  So the data is useless for my purpose.  Is this because I'm using RAW for everything?
 
Thanks
Kev.

Reply via email to