Hi Rob,
 
QtocRtvTCPA API seems to be my preferred solution.
 
Thanks,
 
Zvi


--- On Tue, 1/19/10, rob@xxxxxxxxx <rob@xxxxxxxxx> wrote:


From: rob@xxxxxxxxx <rob@xxxxxxxxx>
Subject: Re: iSeries IP / hostname: how to get
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date: Tuesday, January 19, 2010, 7:18 AM


Keep in mind that you can have multiple interfaces (IP Addresses) on your
i.  I have over a dozen.  See NETSTAT.  See also
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/apis/comm8.htm

See also host name in TCPA0300 Format at
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/apis/qtocrtvtcpa.htm
TCPA0300        TCP/IPv4 domain attributes in addition to TCP/IPv4 stack
status. See TCPA0100 Format and TCPA0300 Format for details on the format.
As of V6R1, this format is replaced with TCPA1400 and should no longer
be used.<<

And if you're clever at program stack messages...
PING RMTSYS('hostname.domainname') MSGMODE(*QUIET *ESCAPE) 
  Verifying connection to host system hostname.domainname at address
10.10.1.211.
  Round-trip (in milliseconds) min/avg/max = 0/0/0.
  Connection verification statistics: 5 of 5 successful (100 %).
You can find out what your host table, or DNS, thinks the IP address for
that host.domain should be.

Rob Berendt

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.