Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Printing > Need to get IP ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1698 of 1774
Post > Topic >>

Need to get IP address of user sending job

by Gary Carroll <garycarroll@[EMAIL PROTECTED] > Oct 20, 2007 at 05:16 PM

OS = Mac OS 10.4
I have set up a shared print queue that writes incoming jobs to a folder 
as PDF. I would like record about each job with information concerning 
the username, time sent (not always the same as time processed into 
PDF!), IP/MAC address of the system sending the data, and formatting 
requests from the original PostScript such as staple, duplex/simplex, 
etc. 
I believe can get the formatting requests by examining the incoming 
PostScript with a CUPS prefilter before it is converted to PDF. 
Since all users will be on the LAN I should in theory be able to get 
their MAC address by issuing an łarp IP-address˛ shell command. However, 
I would need to know their IP address to do so. I don't know if this is 
visible to CUPS.

Do I have to sniff packets to get this data? If so, does it seem 
reasonable to have a tshark process started with a filter that writes 
only the relevant ****tions of incoming print jobs to a file which can be 
read via the prefilter to get the needed data?

Does someone have a better suggestion (I hope)?
 




 1 Posts in Topic:
Need to get IP address of user sending job
Gary Carroll <garycarr  2007-10-20 17:16:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 2:27:28 CDT 2008.