|
David, JOBI0600 doesn't always supply an IP address. It depends upon whether the client doing the connecting sets it, or not. -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs Sent: Wednesday, October 19, 2005 2:42 PM To: Midrange Systems Technical Discussion Subject: Re: Detect client IP when remote job run via QZRCSRVS? David Gibbs wrote: > Does anyone know of a programmatic way to determine the remote client > IP address for a command run through QZRCSRVS? I finally got back to this today ... and I think I've found a solution. Turns out that QUSRJOBI format JOBI0600 has a client IP field. It appears to work for both workstation and server submitted requests. http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/apis/qu srjobi.htm "Client IP address. The IP address of the client for which this server is doing work. When this field is blank, this thread is not serving a client. An address is expressed in the form www.xxx.yyy.zzz (for example, 130.99.128.1). This field is not guaranteed to be an IP address. This field is set to the value set by the QWTCHGJB API.End of change" I need to validate it a bit more ... but it looks promising. david
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.