[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux] Compter les pages imprimées



On Tue, 23 Apr 2002, Alain Meurant wrote:

> Bonjour
> 
> Je bosse sur une borne interactive sous Linux.
> J'ai besoin de savoir combien de pages sont imprimées par l'utilisateur.
> 
> Comment compter les pages imprimées ?

Via le daemon d'impression ?

LPRng fait de l'accounting . 

"
   The LPRng software provides several methods of  performing
       accounting.  The printcap af (accounting field), as and ae
       (accounting start and end), and  achk  (accounting  check)
       provide a basic set of facilities.  The af field specifies
       a file, filter, or TCP network connection to an accounting
       server.   If  af has the form |filter or |-$ filter then a
       filter will be started and all accounting information will
       be  sent  to the filter.  The first form passes the filter
       the command line options specified by  the  filter_options
       configuration  variable  and  the second suppresses option
       passing.   If  af  has  the  form  host%port  then  a  TCP
       connection  will  be  opened  to the port on the specified
       host and accounting information  sent  there.   All  other
       forms  will be treated as a pathname relative to the queue
       spool directory.

"

> Existe-t-il un imprimante intelligente pour retourner au serveur le nombre
> de pages qu'elle a printé ?

Oui via SNMP. Dans certaines MIB proprio tu as le nombre que l'imprimante 
à printer. 

Oui via d'autre méthode. Suivant les imprimantes tu peux retirer des 
informations. 

> 
> D'autres idées ?

Oui bcp. 

 -> accounting sur les queues elle-même ? 
 -> sur le bac papier ?  (tjs un maximum si vite....)
 -> via un as ae dans l'accounting de LPRng
 -> parsing du af files pour lpr. 
 -> CUPS 
 -> ...


> 
> Alain Meurant
> 
> _______________________________________________
> Linux Mailing List
> LCP - 11 Mai - http://www.unixtech.be/lcp.php
> Archives: http://www.unixtech.be/mailman/listinfo/linux
> 







_______________________________________________
Linux Mailing List
LCP - 11 Mai - http://www.unixtech.be/lcp.php
Archives: http://www.unixtech.be/mailman/listinfo/linux