|
I thought the way that the iSeries Cluster worked in a failover situation was for the failover system to assume the address of the failed system. Otherwise the DNS would have to be changed to start sending out the failover systems address. In order to get the IP address of the iSeries, I'd use the following api calls: int gethostname(char *name, int length) - get host name set in CFGTCP Opt 12 struct hostent *gethostbyname(char *host_name) - resolves the name to a list of 32 bit addresses and a list of alias names char *inet_ntoa(struct in_addr internet_address) - translate 32 bit address to its dotted decimal form. You still have to figure out which of the addresses to use if your systems name resolves to more than one address - I usually opt for the first one. Kurt
-----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l- bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx Sent: Wednesday, July 19, 2006 2:08 PM To: Midrange Systems Technical Discussion Subject: RE: Programmatically Pull the IP Address of The iSeries <snip> When we are role swapped, the file needs to go to the DR iSeries. </snip> Excuse me, but we're looking at DR also. Wouldn't the DR iSeries change in some other fashion? Like, the DNS now serve the backup i5 and not the primary? So, that if you ping myi5 instead of getting 10.10.1.5 you might now get 10.10.1.6? Isn't this how it should work? Well, I suppose both addresses could be configured on both boxes and the interface just not started would be an alternative. In summary I am saying that there has to be a better way. Otherwise, imagine changing a few thousand emulation sessions on about that many pc's to now point to the backup system. Not really a plan that could be implemented in minutes, right? Rob Berendt -- Group Dekko Services, LLC Dept 01.073 PO Box 2000 Dock 108 6928N 400E Kendallville, IN 46755 http://www.dekko.com -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
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.