Forum Discussion

alex_der_101956's avatar
alex_der_101956
Icon for Nimbostratus rankNimbostratus
Apr 12, 2006

pool member acitve/inactive in 9.x?

Is there a method to find out whether a pool member is active/inactive in 9.x?
  • 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
  • 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.
  • 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