Forum Discussion
thagmann_128177
Nimbostratus
Oct 15, 2004iControl v9.0 Primary Failover Method
What method would I call in i-control 9.0 to find the name and ip of the BIGIP failover device?
Thanks,
-Tom
Oct 15, 2004
Tom,
In 9.x, we introduced a method to retrieve the address(es) of peer systems.
String[] System::Failover::get_peer_address();
From the SDK:
This will return the peer IP address(es) in a redundant pair. There will be a primary address and possibly a secondary address. The primary will be the first entry in the returned list
Keep in mind that the address returned from the BIG-IP will be the address that it uses to communicate with the peer. This may be either an external or internal address depending on the configuration.
For those who are wondering where the equivalent method is in version 4.x of the SDK, we didn't expose a method to retrieve these values directly. What you would need to do is access the configuration database.
String ITCMManagement::Bigdb::get_key(
in String db_name,
in String key_name
);
Passing an empty string for the db_name will point you to the default configuration database and the peer address can be accessed by using the key name of Local.Bigip.StateMirror.PeerIpAddr
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects