[cups.general] getting IP of clients for archiving

Michael Sweet mike at easysw.com
Fri Dec 3 12:02:38 PST 2004


mutombo wrote:
> Hello cups-list,
> 
> 
> i would like to use cups as a document archiver.
> for my own backend i need the IP of the client that sends the
> printjob, but it seems like only these parameters are given:
> $job,$user,$title,$copies,$options,$filename
> is it possible to patch cups to add a $IP parameter there?
> if this is not possible, perhaps someone has an idea how this could be
> done?
> i thought about parsing the logs, but in accesslog is no filename and
> the pagelog has no IP. only the username is in both logs, but this
> aint really a uniq comparefactor.

Send a Get-Job-Attributes request to the local server for the job
ID provided on the command-line and look for the
job-originating-host-name attribute.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list