Forum Discussion

splawik86_25546's avatar
splawik86_25546
Icon for Nimbostratus rankNimbostratus
Apr 05, 2016

How to list WideIP pool memeber for GTM

Hi,

 

I have problem with check pool memebers for gtm via pycontrol. I know how to list WideIP's, pools, but anybody know how to check pool memebers (memeber's state,amount in pool) ?? Thx for help

 

  • This is how it goes in C:

    loop through the list of pools

            string[] POOL_list = m_interfaces.GlobalLBPool.get_list();
    
            for (int i = 0; i < POOL_list.Length; i++)
            {
    

    And when the pool of interest is found, loop through the member list:

                   poolmems1 = m_interfaces.GlobalLBPool.get_member(new string[] { POOL_list[i] });
                    for (int j = 0; j < poolmems1[0].Length; j++)
                    {