Welcome to MacForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Need to get IP address of user sending job

 
   Macintosh computer (Home) -> Printing RSS
Next:  Printing: HP Lj 5200dtn  
Author Message
Gary Carroll

External


Since: Oct 20, 2007
Posts: 2



(Msg. 1) Posted: Sat Oct 20, 2007 5:16 pm
Post subject: Need to get IP address of user sending job
Archived from groups: comp>sys>mac>printing, others (more info?)

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 portions 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)?

 >> Stay informed about: Need to get IP address of user sending job 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Printing All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]