Forum Discussion
Feb 24, 2015
BIG-IP : determine active device
F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi
Via iControl API :
How to determine if a specific device is operating in active or standby mode for an active-standby sync-failo...
Oct 02, 2017
In addition to my previous response the following approach looks better to me.
Make a call via GET to/mgmt/tm/cm/traffic-group/traffic-group-1/stats?$select=deviceName,failoverState
to one of the units in your sync-failover BIG-IP device service clusters in order to receive the following response:
{
"entries": {
"https://localhost/mgmt/tm/cm/traffic-group/traffic-group-1/~Common~traffic-group-1:~Common~bigip61.lb-net.bit/stats": {
"nestedStats": {
"entries": {
"deviceName": {
"description": "/Common/bigip61.lb-net.bit"
},
"failoverState": {
"description": "standby"
}
}
}
},
"https://localhost/mgmt/tm/cm/traffic-group/traffic-group-1/~Common~traffic-group-1:~Common~bigip62.lb-net.bit/stats": {
"nestedStats": {
"entries": {
"deviceName": {
"description": "/Common/bigip62.lb-net.bit"
},
"failoverState": {
"description": "active"
}
}
}
}
}
}
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