Forum Discussion
Arnaud_Lemaire
Jun 15, 2016Employee
no a python expert but here is loop example :
res = b.LocalLB.Pool.get_all_member_statistics(pool_names = ['/Common/pool_turnkey'])
for statistic in res[0].statistics:
print "member ip:port " + statistic.member.address + ":%s" % statistic.member.port
print statistic.statistics[4].type
print statistic.statistics[4].value
if statistic.statistics[4].value.high == 0: print "can be disabled"
output:
member ip:port: /Common/172.16.20.1
STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS
(Common.ULong64){
high = 0
low = 0
}
can be disabled
member ip:port: /Common/172.16.20.3
STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS
(Common.ULong64){
high = 0
low = 0
}
can be disabled