Forum Discussion
Aled_2623
Nimbostratus
Sep 18, 2013Bigsuds - How to enable / disable certain pool members?
Hello all, this is my first post here, to quickly introduce myself - I'm Aled, I work in London (GB) for an online gaming company. I'm currently getting an automated deployment system in place for Co...
JRahm
Admin
Sep 18, 2013A couple syntax issues, and you need to change both the session and monitor states:
>>import bigsuds
>>b = bigsuds.BIGIP('192.168.6.5')
>>pl = b.LocalLB.Pool
>>> pl.get_member_session_status(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]])
[['SESSION_STATUS_ENABLED']]
>>> pl.get_member_monitor_status(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]])
[['MONITOR_STATUS_UP']]
>>> pl.set_member_monitor_state(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]], [['STATE_DISABLED']])
>>> pl.get_member_session_status(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]])
[['SESSION_STATUS_ENABLED']]
>>> pl.get_member_monitor_status(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]])
[['MONITOR_STATUS_FORCED_DOWN']]
>>> pl.set_member_session_enabled_state(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]], [['STATE_DISABLED']])
>>> pl.get_member_session_status(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]])
[['SESSION_STATUS_FORCED_DISABLED']]
>>> pl.get_member_monitor_status(['/Common/testpool_alt'], [[{'address': '192.168.101.22', 'port': 80}]])
[['MONITOR_STATUS_FORCED_DOWN']]
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