Forum Discussion

kaizen10_106842's avatar
kaizen10_106842
Icon for Nimbostratus rankNimbostratus
Jun 15, 2012

Help 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

  • 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
  • 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?

     

  • 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