Stan,

There's a big difference between an IP address of the current stack and a 
usable IP address of the current stack.  It would not be much use giving an IP 
address of, say, a hipersocket interface home address which is not routable.  
Although you can find out all the home addresses (there have been a few 
solutions given for that) you would not know which one to pass back to the 
remote application.

You could assume that the primary IP address is a good one to use (it would be 
if SOURCEVIPA were in use) or you could do what DB2 resync processing does.  
The DB2 guys just code a DNS name for that and then the resolver translates it 
using /etc/ipnodes so that's what DB2 passes to the end server to use to 
connect back in.

Regards,
Alan Watthey

-----Original Message-----
From: Stan Weyman <[email protected]> 
Sent: 29 April 2019 3:00 pm
Subject: TCPIP IP address for current LPAR

   Is there an accessible control block that holds the IP address (or 
addresses) for the current LPAR I'm running on?   I have need to pass back this 
address to another remote application and would prefer to interrogate a control 
block rather than issue commands to obtain same a la D TCPIP,,NETSTAT,HOME 
(although this would be my alternative).   A sample snippet of code would be 
great but the location should let me get there.  

   Is there any other option that getting the @ from a control block or using D 
TCPIP,,NETSTAT,HOME?

   Thanks ahead of time 

      Regards
          Stan


     

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to