how can i get detailed printing reports from the CUPS printing server? for example, the user sending the job, IP address, especially number of pages sent to printer
1 Answer
Assuming your CUPS is on Linux, installed with all components into their default path. Then have a look at the file
/var/log/cups/page_log
This file holds all information about jobs having been completed by CUPS. To understand the file's format, have a look at
- http://localhost:631/help/ref-page_log.html or
- http://www.cups.org/documentation.php/doc-1.3/ref-page_log.html or
- http://www.cups.org/documentation.php/doc-1.4/ref-page_log.html or
- http://www.cups.org/documentation.php/doc-1.5/ref-page_log.html
Each line in the file tells you for each job, copy and page the following info (if it's format is not customized):
- Printer Name
- User Name
- Job-ID
- Date+Time of Printout
- Page Number
- Copy Number
- Job Billing Info (if submitted)
- Print Client's Host Name
- Job Name (if provided)
- Media Name (if provided)
- Sides: one- or two-sided? (if provided)