Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1434153 - CUPS print jobs show incorrect number under the "pages" column
CUPS print jobs show incorrect number under the "pages" column
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cups (Show other bugs)
7.3
All Linux
medium Severity medium
: rc
: ---
Assigned To: Zdenek Dohnal
Petr Sklenar
Lucie Maňásková
: Patch
Depends On:
Blocks: 1420851 1465887 1465928
  Show dependency treegraph
 
Reported: 2017-03-20 16:12 EDT by Bryan Mason
Modified: 2018-10-23 01:16 EDT (History)
6 users (show)

See Also:
Fixed In Version: cups-1.6.3-33.el7
Doc Type: Release Note
Doc Text:
SNMP page counting can be now disabled in CUPS The simple network management protocol (SNMP) page counting currently shows incorrect information for certain printers. With this update, the CUPS printing system supports turning off the SNMP page counting, which prevents the problem. To do so, add `*cupsSNMPPages: False` into the printer's postscript printer description (PPD) file. The procedure for adding options into printer's PPD file is described in solution article at https://access.redhat.com/solutions/1427573 .
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 09:41:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed Patch (1.71 KB, patch)
2017-03-20 16:12 EDT, Bryan Mason
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0782 None None None 2018-04-10 09:42 EDT

  None (edit)
Description Bryan Mason 2017-03-20 16:12:08 EDT
Created attachment 1264849 [details]
Proposed Patch

Description of problem:

  CUPS mechanism for reporting the number of pages in a print job
  using SNMP is unreliable.  Would like the ability to disable
  that mechanism.

Version-Release number of selected component (if applicable):

  cups-1.6.3-27.el7

How reproducible:

  100%

Steps to Reproduce:

1. Submit a largish print job (20 pages or more).  Wait for it to complete.

Actual results:

  CUPS Web interface will show some number of pages less than those 
  that were actually printed.

Expected results:

  CUPS should show the correct number of pages.

Additional info:

  Before it sends anything to the printer, the socket backend uses SNMP
  to get the printer's value for "prtMarkerLifeCount", which is the
  total number of sheets printed over the life of the printer.

  When the printer signals that the job is complete, the backend does a
  second SNMP request for "prtMarkerLifeCount".  It then computes the
  total pages in the job by subtracting the two values.

  The problem is that the printer is reporting that the job is complete
  before all the sheets have actually been printed.  Thus when the
  socket backend makes the second SNMP request, not all the pages in the
  job are accounted for, and the value is incorrect.

  The attached patch gives users the ability to disable SNMP page
  counting by adding:

    *cupsSNMPPages: False

  to the printer's PPD file.  When SNMP page counting is disabled, CUPS
  uses the "PAGE: 1 1" messages from the filters to increment the page
  count for the job.  The result reflects the actual number of pages in
  the job, but not necessarily the number of pages actually printed.
Comment 24 errata-xmlrpc 2018-04-10 09:41:08 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0782
Comment 25 adamjems 2018-10-23 01:16:07 EDT
The reason behind this problem is CPU does not count pages sent to the CPU server and it is because windows send the page as RAW to the CPUs.To resolve this just change the windows Driver to Generic -> Ms. Publisher Imagesetter - now you will be able to see the page counting perfect in /var/log/cups/page_log, but the printing quality can decreases. for more visit https://www.canonprintersupportnumbers.com/canon-printer-setup/

Note You need to log in before you can comment on or make changes to this bug.