I am using the CUPS print server on a MAC to manage printing, I would like to know the number of pages that are printed by any user for any job, however the column for pages writes unknown for each printing job.
How can I go about this
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
If you're printing PostScript files, you really can't tell how many pages will be printed without interpreting the file and counting them. If you need this, you can modify the spooler to get total pages printed from the systemdict before and after the job, and use the difference.
Non-PS printers may differ.
I know this topic is very old but i am searching this for months (i dont found any solution for this in any forum, but only disappointed people about this issue).
The problem is that cups does not count pages sent to the cups server, counting one page. (I think your mac are serving the network as a central printer server isn't?)
There is a workaround, just change the windows Driver to Generic -> Ms Publisher Imagesetter - Now Cups can understand what this Windows driver is saying and translate it to the printer (printing normal with the wrong driver (it works for my Hp Laserjet Professional)), so you will be able to see the page counting perfect in /var/log/cups/page_log, but the printing quality can decreases.
Are you refering to the
page_log file which CUPS maintains, when you talk about "the column for pages"?
Did you see these pieces of documentation (which is valid for Mac OS X as well) ?