For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

ykkim's avatar
ykkim
Icon for Nimbostratus rankNimbostratus
May 07, 2012

How to enable/disable selected poolmembers

Hi,

 

I have to enable/disable selected poolmembers at a time using iControl(Java).

 

 

At first, I got each member's EnabledStatus successfully by calling API "LocalLB::PoolMember::get_object_status". But I couldn't find it's counterpart function for configuring EnabledStatus.

 

Instead, I could see these functions.

 

 

* LocalLB::PoolMember::set_monitor_state

 

* LocalLB::PoolMember::set_session_enabled_state

 

 

According to the SDK document and my simple test, they seem to set not EnabledStatus but some kind of states.

 

 

So how can I switch EnabledStatus of poolmembers using iControl?

 

2 Replies

  • Here's an article I wrote about the various server state settings and how to get and set them. Post back if that doesn't answer your questions.

     

     

    https://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/369/iControl-Apps--20--Server-Control.aspx

     

     

    -Joe

     

  • ykkim's avatar
    ykkim
    Icon for Nimbostratus rankNimbostratus
    Thanks a lot.

     

    Your answer was very helpful. I finished my work well.