Enable server side page logging given presence of client side PPD
Ryan Lovett
ryan at spacecoaster.org
Mon Apr 2 12:00:06 PDT 2012
Summary: I can print from a client successfully, but there is no entry in the server's page.log. There is a record in error.log. The client machine is a Mac running 10.6.8 and the server is running Ubuntu 8.04. How can I make sure that the server logs page totals given a PPD on the client machine? Can users install arbitrary PPDs that enable them to hide from page accounting?
Server has in printers.conf:
<Printer lp1>
Info lp1
Location Lab
DeviceURI socket://printer-address:9100
State Idle
StateTime 1323462069
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
and in cupsd.conf:
<Location /printers/lp1>
Require valid-user
AuthType Basic
AuthClass User
</Location>
and in server's and client's ppd:
*PCFileName: "HPP00014.PPD"
*Product: "(HP LaserJet 500 color M551)"
Client has:
<Printer lp1>
AuthInfoRequired username,password
Info lp1
Location Lab
MakeModel HP LaserJet 500 color M551
DeviceURI https://print-server:6443/printers/lp1
State Stopped
StateMessage Empty print file!
StateTime 1333065326
Reason paused
Type 8425692
Product (HP LaserJet 500 color M551)
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-command 0 /Library/Printers/hp/...
Filter application/vnd.cups-postscript 0 /Library/Printers/hp/...
PreFilter application/pdf 100 /Library/Printers/hp/...
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Server error.log:
I [29/Mar/2012:16:54:25 -0700] [Job 85191] Adding start banner page "none".
I [29/Mar/2012:16:54:25 -0700] [Job 85191] Adding job file of type application/postscript.
I [29/Mar/2012:16:54:25 -0700] [Job 85191] Adding end banner page "none".
I [29/Mar/2012:16:54:25 -0700] [Job 85191] Queued on "lp1" by "user1".
I [29/Mar/2012:16:54:25 -0700] [Job 85191] Started backend /usr/lib/cups/backend/socket (PID 12791)
I [29/Mar/2012:16:54:35 -0700] [Job 85191] Completed successfully.
I [29/Mar/2012:16:54:35 -0700] cupsdCloseClient: SSL shutdown successful!
E [29/Mar/2012:16:54:43 -0700] Unsupported character set "iso-8859-1"!
Ref: http://www.cups.org/str.php?L4051
More information about the cups
mailing list