[cups.general] Client's IP address to a backend

Jerome Alet alet at librelogiciel.com
Wed Jun 8 07:43:24 PDT 2005


Hi,

On Wed, Jun 08, 2005 at 10:34:19AM -0400, Enrico Pelletta wrote:
> 
> I would like to migrate our printer server from LPRng to CUPS, but 
> I got troubles adapting to CUPS our current accounting system. 
> 
> I created a new wrapper backend (similar to accsnmp), but we need 
> to account printed pages to IP addresses, not to user names (It 
> sounds strange, but this what we need...). I wonder if it is 
> possible to add the IP address of the client in the list of 
> parametes sent to the backend. 
> 
> I have look around in previous messages, FAQ, howto, etc... But I 
> have not managed to find any tips. 

I asked this once and IIRC the answer was no...

That's why I wrote an IPP message parser to extract all values, 
including the client's hostname (or IP address) from 
/var/spool/c????? files : 

        http://www.librelogiciel.com/software/ipp.py
        
NB : this code may not work in future releases of CUPS        

hth        

Jerome Alet





More information about the cups mailing list