Forum Discussion

Luke_Lehman's avatar
Luke_Lehman
Icon for Employee rankEmployee
Jul 28, 2010

Number of Virtual Servers per Server in GTM

Hey All,

 

 

I've looked through the SDK pretty thoroughly, but haven't found the method that would allow me to obtain the of virtual servers defined when providing a server name.

 

 

I would think this would be pretty staightforward and hope that I'm just overlooking something.

 

 

Thanks!

1 Reply

  • in iControl SDK for some strange reason this is implemented the other way round:

     

     

    First you get the list of all Virtual Servers using:

     

     

    GlobalLB.VirtualServer->get_list();

     

     

    then you get the Server names for the above list using GlobalLB.VirtualServer->get_server(...) method

     

     

    So you get two arrays - one with all the Virtual Servers and another one with the names of their Servers, you can now extract/calculate the required counts...

     

     

    Sam