× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Terry,

Since the iSeries could have multiple interfaces, it could have more than one 
IP address. You can use the QtocLstNetIfc API to retrieve a list of the 
interfaces and then go through the list and check each interface's status to 
see if it is active. The subset of active interfaces would represent all the IP 
addresses that the iSeries could respond to. I'm not sure what happens in the 
case of PPP (dialup) connections.

But maybe you're more interested in a function such gethostbyname to see what 
DNS and/or host table thinks your IP address is supposed to be.

Maybe you could tell us a little more about what your program needs to do.

-Marty

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

Subject
Programmatically Pull the IP Address of The iSeries

Greetings List,
Is there a way of programmatically pulling the IP address of the
iSeries? I have found tons of examples that pull the address of an
attached device, but none that pull the address of the iSeries itself. I
thought I could use RTVNETA, but that doesn't seem to work. Is there
another command or API that I can use to get this? We are on V5R3.

Thanks,

Terry Anderson


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.