Lire support for CUPS?
Kurt Pfeifle
kpfeifle at danka.de
Mon Oct 22 12:04:11 CEST 2001
Egon Willighagen wrote:
>
> On LinuxFocus Talkback you wrote:
> > To have lire analyze the "page_log" file produced by CUPS
> > (http://www.cups.org/ , the Common UNIX Printing System, would be really
> > cool.
[....]
> > Would this be easy? (I can provide you with a sample of a pag_log file,
> > if none of you folks knows or uses CUPS so far...)
>
> Yes, that would be an excellent extension to Lire, since printing services
> fit perfectly in our target environment. Please send us your sample log
> file, which we will use for test purposes.
OK, there is the /var/log/cups/page_log attached (as of my demo-laptop); later
in the day (when it is re-connected), I'll send another log from my main
server.
> I assume the CUPS webpage explains the log format?
You can find all CUPS documentation at http://www.cups.org/documentation.html.
The explanation about the log format is inside the "Software Administrator
Manual" at http://www.cups.org/sam.html#PRINTER_ACCOUNTING.
> If not, could you give
> some explanation on the fields?
extract from "Software Administrator Manual":
The page_log File
-----------------
The page_log file lists each page that is sent to a printer. Each line contains
the following information:
printer |user |job-id |date-time |page-number |num-copies |job-billing
--------+-----+-------+-----------------------------+------------+-----------+-----------
DeskJet |root |2 |[20/May/1999:19:21:05 +0000] |1 |0 |acme-123
The p r i n t e r field contains the name of the printer that printed the
page. If you send a job to a printer class, this field will contain the name
of the printer that was assigned the job.
The u s e r field contains the name of the user (the IPP requesting-user-name
attribute) that submitted this file for printing.
The j o b - i d field contains the job number of the page being printed.
Job numbers are reset to 1 whenever the CUPS server is started, so don't
depend on this number being unique!
The d a t e - t i m e field contains the date and time of when the page
started printing. The format of this field is identical to the data-time
field in the access_log file.
The p a g e - n u m b e r and n u m - p a g e s fields contain the page
number and number of copies being printed of that page. For printer that
can not produce copies on their own, the num-pages
field will always be 1.
The j o b - b i l l i n g field contains a copy of the job-billing
attribute provided with the IPP create-job or print-job requests or "-"
if none was provided.
> kind regards,
>
> Egon
Sorry, for not being able to respond more quickly. Have been at "SYSTEMS
2001" and very successfully presented CUPS + KDEPrint (and infected one
GNOME developer to add a GNOME interface to CUPS... ;-)
Cheers,
Kurt
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list