Forum Discussion
kaizen10_106842
Nimbostratus
Jun 15, 2012Help to disable / enable LTM pool member
Hi,
I am new to Icontrol using Perl.
I could write basic script to get pool status, system id etc...
For application deployment we need to disable / enable pool member. I couldn't get idea how to do it.
Can you please kindly shed light / share code on how to write a perl script to do it?
Greatly appreciated.
-Thanks.
5 Replies
- snovakov_86258
Nimbostratus
Hello kaizen10,
Just download the SDK and look at the Perl examples.
Go to:
https://devcentral.f5.com/HotTopics...fault.aspx
click 'SDK Download' link.
Go through the API documentation. That's really all there is to get you started. Maybe a tutorial somewhere...
There are examples of 'iControl' coding here:
https://devcentral.f5.com/wiki/iControl.CodeShare.ashx
Are you already familiar with Perl programming?
~ snovakov - kaizen10_106842
Nimbostratus
Thanks. Will look into it. - snovakov_86258
Nimbostratus
You might have to remove/re-add pool members to do what you are describing above (i.e. enable/disable pool members).
I looked in the LocalLB/Pool and LocalLB/PoolMember interfaces, and I don't see anything like 'enablePoolMember' or 'disablePoolMember'.
Joe, can you help with this? - snovakov_86258
Nimbostratus
One other possibility is the:
LocalLB.PoolMember.set_session_enabled_state()
method...
~snovakov - Here's an article I wrote on Graceful Server Shutdowns that illustrate the enable/disable methods
https://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/254/iControl-Apps--04--Graceful-Server-Shutdown.aspx
Here's another one that talks about the "three way" state toggle in the GUI, and the methods behind it:
https://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/369/iControl-Apps--20--Server-Control.aspx
Hope this helps...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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