Forum Discussion
James_Smith_299
Nimbostratus
Dec 07, 2016Script that queries pair of BIG-IP LTM to detect which one is Active
Is there a tool or script that queries pair of BIG-IP LTM to detect which one is Active without needing to login Web UI or ssh?
Possibly something we can run from Windows 2003 / 2008 server whe...
tatmotiv
Cirrostratus
Dec 08, 2016using iControl REST, you could for example query the following path with curl:
curl -sk -u admin:mypass https://my-bigip/mgmt/tm/cm/device | python -mjson.tool
This will return a json formatted list of all devices in your device group. One of the fields for each device is "failoverState", that will either return active or standby.
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