Forum Discussion
alex_der_101956
Nimbostratus
Apr 12, 2006pool member acitve/inactive in 9.x?
Is there a method to find out whether a pool member is active/inactive in 9.x?
4 Replies
- I think you are looking for the following method:
MemberObjectStatus[][] LocalLB::PoolMember::get_object_status( in String[] pool_names );
This will return a list of the pool members for the specified pools along with the Enabled or Disabled state of that member. You might want to also check the monitor status (result of health monitor checking) which is available in this method:MemberMonitorStatus[][] LocalLB::PoolMember::get_monitor_status( in String[] pool_names );
-Joe - alex_der_101956
Nimbostratus
Thanks Joe for your quick response. I think I should have been a little more descriptive in my original post. The method used in our 4.x script is ITCMLocalLB:Pool:get_member_active_states. I've looked through the LocalLB.PoolMembers' methods, but cant seem to find anything that will tell me whether the member is active/inactive. - Jay_Sawyer_1110
Nimbostratus
Hi Joe,
In regards to the get_monitor_status(), is there a command for disabling a pool (marking a pool down)? I have a pool1 (3 members) that is dependent on member state of pool2 (3 members, 6 services.)
Thanks in advance,
Jay - I don't believe there is a way to disable a pool outside of disabling all of it's members. You can do this with LocalLB::PoolMember::set_monitor_state().
One long shot would be to try out the LocalLB::Pool::set_minimum_up_member() and specify a larger member that are defined in the pool. So, if a pool has 5 members, set the minimum_up_member count to 6. I'm not sure if this will work (probably not), but it may be worth a shot if you don't want to disable all members manually.
-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