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?

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.

-Joe

Thanks a lot.

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