Missing print jobs in page_log

Helge Blischke h.blischke at acm.org
Fri May 13 06:52:27 PDT 2011


Shimi Chen wrote:

>>
>> Hello,
>>
>> On May 11 04:58 Shimi Chen wrote (excerpt):
>> > Some print jobs being sent to the server from MS Windows
>> > workstations ... are not logged in the page_log file.
>>
>> I assume the reason is what is described in
>> http://www.cups.org/documentation.php/doc-1.4/accounting.html
>> ---------------------------------------------------------------------
>> Page logging is only available for drivers that provide page
>> accounting information, typically all PostScript and CUPS raster
>> devices. Raw queues ... do not have useful page accounting
>> information available.
>> ---------------------------------------------------------------------
>>
>> In particular regarding Windows clients see
>> http://en.opensuse.org/SDB:Printer_Accounting
>> ---------------------------------------------------------------------
>> In contrast when there are users who print from Windows to your
>> Linux print server, the default CUPS software accounting is not
>> really useful. The usual way to print from Windows to Linux is
>> that on the Windows client machine the Windows printer driver
>> is run. The driver produces printer specific data which is
>> then printed in "raw" mode on the Linux print server. In this
>> case the default CUPS software accounting cannot count pages.
>> For each "raw" print job there may be none or at most a single
>> entry in /var/log/cups/page_log but the page count value could
>> be only a dummy value "1" regardless how many pages were
>> actually printed.
>> ---------------------------------------------------------------------
>>
>> Kind Regards
>> Johannes Meixner
>> --
>> SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg --
>> Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix
>> Imendoerffer
>>
> Is there any way to prevent printing in "raw" mode and just accept
> postscript so that the log will work correctly?

Make sure that your SAMBA is
a) configured with
   printing = cups
and
b) cups options is either empty (or not present) or does not 
    contain the word "raw".

Helge





More information about the cups mailing list