Forum Discussion
Derek_21893
Nimbostratus
Aug 06, 2009Discovery of failover peer using iControl
Hi,
I'd like to be able to discover a failover peer for an active-active or active-standby pair of LTMs using iControl. From what I can tell there is no good way to do this currently. ...
Mark_Atkinson_5
Apr 13, 2010Historic F5 Account
You can programatically get the peer management address using the, uh, rather clunky ltconfig interface.
!/usr/bin/env python
import sys
from SOAPpy import *
def main(argv):
user = argv[1]
password = argv[2]
bigip = argv[3]
url = '%%s://%s:%s@%s/iControl/iControlPortal.cgi' % (user,password,bigip)
ProxyBuilder = lambda x: SOAPProxy(url % 'https', namespace='urn:iControl:' + x)
ltcfg = ProxyBuilder('LTConfig/Class')
failover = ltcfg.get_list_of_instances(class_names=['failover'])
ltcfg = ProxyBuilder('LTConfig/Field')
peer = ltcfg.get_value(class_instance_key=failover[0][0], field_instance_name='peer_mgmt_addr')
print peer
if __name__ == "__main__":
sys.exit(main(sys.argv))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