Forum Discussion
iControl REST query the state of a traffic group on a bigip.
I'm trying to figure out, in iControl, how to get the status of a particular traffic group on a give node.
When I query the traffic group, it just shows me that it exists, not if it's active or not on the node I'm working querying.
In my present configuration, I keep all traffic groups on one node or another which makes the device Acitve or Standby and can get that info from iControl, but I might change that in the future, so I want to get the state of individual traffic groups.
R. Marc
1 Reply
Running the following returns a fair amount of information about what device a traffic group is on and its state. (edited for clarity)
get("/cm/traffic-group/stats") ... u'https://localhost/mgmt/tm/cm/traffic-group/~Common~traffic-group-1:~Common~mybigip1/stats': { u'nestedStats': { u'entries': { u'deviceName': { u'description': u'/Common/mybigip1'}, u'failoverState': { u'description': u'active'}, u'nextActive': { u'description': u'false'}, u'trafficGroup': { u'description': u'/Common/traffic-group-1'}}, u'kind': u'tm:cm:traffic-group:traffic-groupstats', u'selfLink': u'https://localhost/mgmt/tm/cm/traffic-group/~Common~traffic-group-1:~Common~mybigip1/stats?ver=11.5.1'}}, u'https://localhost/mgmt/tm/cm/traffic-group/~Common~traffic-group-1:~Common~mybigip2/stats': { u'nestedStats': { u'entries': { u'deviceName': { u'description': u'/Common/mybigip2'}, u'failoverState': { u'description': u'standby'}, u'nextActive': { u'description': u'true'}, u'trafficGroup': { u'description': u'/Common/traffic-group-1'}}, u'kind': u'tm:cm:traffic-group:traffic-groupstats', u'selfLink': u'https://localhost/mgmt/tm/cm/traffic-group/~Common~traffic-group-1:~Common~mybigip2/stats?ver=11.5.1'}},
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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