Forum Discussion
BigSuds: Different status on LocalLB.Pool.get_member_monitor_status
- Mar 23, 2015
Try this:
LocalLB.Pool.get_member_monitor_status(['pool_test_01', 'pool_test_02'], [[{'address': 'node001', 'port': 80}],[{'address': 'node001', 'port': 80}]])
OK, so I have taken your configuration above (pool 1 contains nodes 1 & 2, pool 2 contains nodes1 & 3) and used the following code:
pool1 = 'pool_test_01'
pool2 = 'pool_test_02'
member1 = 'node001'
member2 = 'node002'
member3 = 'node003'
port = '80'
print "OUTPUT"
print pl.get_member_monitor_status([pool1, pool2], [[{'address': member1, 'port': port}, {'address': member2, 'port': port}], [{'address': member1, 'port': port}, {'address': member3, 'port': port}]])
print pl.get_member_session_status([pool1, pool2], [[{'address': member1, 'port': port}, {'address': member2, 'port': port}], [{'address': member1, 'port': port}, {'address': member3, 'port': port}]])
This gives the desired results. Please note I have been changing the states of the nodes so the context is probably different than your original scenario). Please also note I have included both get_member_session_status and get_member_monitor_status as it is the combination of these two which provides the actual status options in the Web UI - see here for more details. In conclusion, it looks like you must specify the pool members for each pool, even if they are shared between pools.
I should say that I am just starting out with Python and iControl so I am on a very steep learning and there could be a better way that I am not aware of.
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