Forum Discussion

R_Marc's avatar
R_Marc
Icon for Nimbostratus rankNimbostratus
Oct 29, 2014

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'}},