Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CUPS Page Count & Identification

1,050 views
Skip to first unread message

Practical

unread,
Mar 11, 2011, 8:52:15 AM3/11/11
to
Hi,

Is there a way to count the number of pages printed via logs? Currently,
the CUPS admin panel merely shows the job id. However, a particular id
may have printed 10 or 150 pages. May I please know how it can be
identified?
Also, I would like to know if we can identify / trace the user who
prints a particular page. The basic aim is to minimize wastage of
stationery and also stop users from printing just about anything they want.

TIA

Eef Hartman

unread,
Mar 11, 2011, 9:14:43 AM3/11/11
to

cups keeps limited info about "completed print jobs", see i.e.
lpstat -W completed <other options>
I don't believe the number of PAGES is there, the size in bytes (and
the requesting user) IS).
Try for instance lpstat -W completed -t
which gives (among other info) a table of all completed jobs
(it still knows about), one line per job.

PS: the info is stored in /var/spool/cups, one file per job, but
they're binary files, not logs.
--
******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M....@tudelft.nl - phone: +31-15-27 82525 **
******************************************************************

J G Miller

unread,
Mar 11, 2011, 9:58:37 AM3/11/11
to
On Friday, March 11th, 2011 at 19:22:15h +0530, Practical wrote:

> The basic aim is to minimize wastage of stationery and also
> stop users from printing just about anything they want.

Have you read the web page at

<http://www.cups.ORG/documentation.php/doc-1.4/accounting.html>

Jasen Betts

unread,
Mar 13, 2011, 7:39:44 AM3/13/11
to
On 2011-03-11, Practical <ro...@example.com> wrote:
> Hi,
>
> Is there a way to count the number of pages printed via logs? Currently,
> the CUPS admin panel merely shows the job id. However, a particular id
> may have printed 10 or 150 pages. May I please know how it can be
> identified?

If any of the jobs are raw jobs page counting is difficult.

> Also, I would like to know if we can identify / trace the user who
> prints a particular page. The basic aim is to minimize wastage of
> stationery and also stop users from printing just about anything they want.

--
⚂⚃ 100% natural

Practical

unread,
Mar 18, 2011, 2:17:38 AM3/18/11
to

>
> If any of the jobs are raw jobs page counting is difficult.
>
>> Also, I would like to know if we can identify / trace the user who
>> prints a particular page. The basic aim is to minimize wastage of
>> stationery and also stop users from printing just about anything they want.
>

Thank you gentlemen for the responses. I downloaded the phpPrintAnalyzer
from http://cups.org/links.php?LC+P36+Q. However, the interface is all
in French. I changed the default language to English in config.inc.php
but to no avail.
Unlike the "Periode a consulter" as shown at
http://tpequet.free.fr/phpPrintAnalyzer/ mine shows P?riode ? consulter.
The dropdown list is very constricted and totally blank. Any idea why
this could be happening?

TIA

0 new messages