logo       

Re: page accounting: msg#00356

printing.cups.general

Subject: Re: page accounting


Hi!

On Tue, 30 Sep 2003, chandrakant Reddy wrote:
> Hi
>
> I don't know why page accounting is not working on my
> Solaris box. I followed the README file of Cups
> installation.
>
> 1) I included /opt/sfw/cups/bin:/opt/sfw/cups/sbin
> to PATH
>
> 2) Started CUPS Daemon :
> /opt/sfw/cups/etc/init.d/cups start
>
>
> 3) $ ps -e | grep cupsd
> 8324 ? 0:00 cupsd
>
> 4) Added my network Printer with command
> lpadmin -p print -E -v socket://202.141.151.11
>
> 5) $ bin/lpstat -v
> device for print: socket://202.141.151.11:9100/
>
>
> $>cat /opt/sfw/cups/var/log/cups/page_log showing
>
>
> print d0331094 40 [28/Sep/2003:23:08:45 +0500] 1 1
> print d0331027 41 [29/Sep/2003:01:14:29 +0500] 1 1
> print d0331008 42 [29/Sep/2003:04:26:42 +0500] 1 1
> print d0331027 43 [29/Sep/2003:05:07:59 +0500] 1 1
> print d0331011 44 [29/Sep/2003:05:08:38 +0500] 1 1
> print d0331027 45 [29/Sep/2003:05:30:31 +0500] 1 1
> print d0331027 46 [29/Sep/2003:05:30:38 +0500] 1 1
> print d0331027 47 [29/Sep/2003:05:30:45 +0500] 1 1
> print d0331027 48 [29/Sep/2003:05:33:29 +0500] 1 1
>
> it is still showing number of pages printed as 1

Only Postscript can be accounted correct for the moment (CUPS 1.2 will
implement additional features for page accounting) and the accounting is
done by the filter pstops. So if you
-) send no PS data or no data that is converted into PS by CUPS
filtering chain or
-) you use raw CUPS queues (queues without PPDs associated to them) = no
filtering is done at all
you will only see "1 1" in your logfile.

> How do i change my print queue using command prompt

Don't know what you mean here.

-) lpr -P queue-name ...
-) lp -d queue-name ...
-) If you want to specify a default printer use lpadmin (see
'man lpadmin'; lpadmin as 'root' will change the system defaults,
running as 'user' will only affect this user).

> reagards
> CVR

Bye
Martin


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise