Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Rerieve IP address of a Client Access session?

771 views
Skip to first unread message

Walter

unread,
Jul 18, 2000, 3:00:00 AM7/18/00
to
I have to find out the IP address of interactive jobs (QPADEV... and named
sessions via Client Access).
I found a description via dejanews that uses APIs etc., but it's from 1997.
Is there a simpler way to do this today?

Walter

Steve

unread,
Jul 18, 2000, 3:00:00 AM7/18/00
to
Walter -

Look at program QDCRDEVD, format DEVD0600. When you call this
program with a device name, it will return the IP address.
Search for QDCRDEVD at the IBM InfoCenter web site.

HTH,

Steve


-----------------------------------------------------------

Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com


Rick Price

unread,
Jul 18, 2000, 3:00:00 AM7/18/00
to
In fact, to get the IP address for the current task, we use QUSRJOBI, format
JOBI0600 to get the Device Name, and then use this with with QDCRDEVD as
described below.

Rick

Steve <steve.mck...@southtrust.com.invalid> wrote in message
news:06f0d182...@usw-ex0101-005.remarq.com...

John Ross

unread,
Jul 18, 2000, 3:00:00 AM7/18/00
to
There is an example of a program at
http://www.netshare400.com/cgi-bin/DSPSAMP?file=QCLSRC&mbr=GETIPADR
This program gets the IP address of the device it is called from.

John Ross
WWW.NETSHARE400.COM (Internet Access to an AS/400)


"Walter" <wal...@nospam.com> wrote in message
news:8l1pn6$2u9b$2...@euler.space.net...

Thomas

unread,
Jul 19, 2000, 3:00:00 AM7/19/00
to
Walter:

It's nearly certain there'll never be a simpler way. That is the way to
do it.

Naturally, it can be set up so that it's simple to use though. I have a
couple command shells and some CL that you can pull from
http://zap.to/tl400 that make it about as simple as it's possible to
get. But the underlying call to the API and the extraction of the
address from the returned data will always be there inside. Look over
what I've put up and see if you can suggest any way to simplify farther.

Tom Liotta

In article <8l1pn6$2u9b$2...@euler.space.net>,


"Walter" <wal...@nospam.com> wrote:
> I have to find out the IP address of interactive jobs (QPADEV... and
named
> sessions via Client Access).
> I found a description via dejanews that uses APIs etc., but it's from
1997.
> Is there a simpler way to do this today?
>
> Walter
>
>

--
Tom Liotta
AS/400 systems programmer


Sent via Deja.com http://www.deja.com/
Before you buy.

bryan...@my-deja.com

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to
In article <8l1pn6$2u9b$2...@euler.space.net>,
"Walter" <wal...@nospam.com> wrote:
> I have to find out the IP address of interactive jobs (QPADEV... and
named
> sessions via Client Access).
> I found a description via dejanews that uses APIs etc., but it's from
1997.
> Is there a simpler way to do this today?
>
> Walter
>

I took these "hard to use" api's and wrote what I think is a neat
little program. Take a look at SHOWIP at http://www.ignite400.org .
Navigate thru to the download area.
I shows the IP address of all telnet sessions as well as any LAN IP
printers.

Bryan Dietz

0 new messages