Cups
Wytze van der Raay
wytze at nlnet.nl
Wed Oct 29 10:47:29 CET 2003
Nuno Dias wrote:
> I'm using lire-1.3, and I want to generate a report of cups that say
> the number of sheets per user per printer, this is possible ?
Yes, if you are using CUPS, you should have one or more page_log files
(typically found in /var/log/cups/page_log). You can have Lire produce
its standard text report on these by:
cat page_log page_log.? | lr_run lr_log2report -o txt cups
To customize this report, specifically generating a report of the number
of sheets per user per printer (and/or sheets per printer per user), you
have to write (a) report specification(s) for this (these) report(s)
(sheets-per-user-per-printer.xml and/or sheets-per-printer-per-user.xml)
and invoke it from the report configuration for the print superservice
(print.cfg). You can set this up in your own environment by creating the
files:
$HOME/.lire/etc/print.cfg
$HOME/.lire/reports/print/sheets-per-user-per-printer.xml
$HOME/.lire/reports/print/sheets-per-printer-per-user.xml
with the content as shown in the attachments, and rerun the commandline
given above, to get something like the attached sample report.
Please contribute any customizations which look generally useful to the
LogReport Lire project, for inclusion in new releases!
Regards,
Wytze van der Raay
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: print.cfg
Url: http://lists.logreport.org/pipermail/questions/attachments/20031029/3e5cffe0/attachment.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sheets-per-user-per-printer.xml
Type: text/xml
Size: 1146 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20031029/3e5cffe0/attachment.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sheets-per-printer-per-user.xml
Type: text/xml
Size: 1152 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20031029/3e5cffe0/attachment-0001.xml
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: report.txt
Url: http://lists.logreport.org/pipermail/questions/attachments/20031029/3e5cffe0/attachment.txt
More information about the Questions
mailing list