Forum Discussion

Etienne_Noumen_'s avatar
Etienne_Noumen_
Icon for Nimbostratus rankNimbostratus
Apr 09, 2014

Get F5 BigIp Virtual Servers connection statistics using java and iControl

I was able to set up iControl on Eclipse and I am able to ping my F5 boxes and get pools connection sttaistics. I want to do the same for Virtual servers but I can't find a class that can give me those stats. I haven't done java for a long time and just restarted today to get those stats. Can anyone help me with a snippet of code to get those stats and save me time? Thanks in advance.

 

1 Reply

  • I am using iControl jar file v11.4. Below is my Pool stats code that runs well: public static void main(String[] args) { // body of main method follows // Initialize the iControl Interfaces Object iControl.Interfaces interfaces = new iControl.Interfaces(); interfaces.initialize("xxxxx", "xxxx", "xxxxx"); // Call the static getList method to return the list of existing pools. try { String [] poolList = iControl.Objects.LTM.Pool.getList(interfaces); } catch(Exception ex) { ex.printStackTrace(System.out); } // Get a specific Pool object with the name dummyPool. try { iControl.Objects.LTM.Pool pool = new iControl.Objects.LTM.Pool(interfaces,"XXXXX"); // Query pool members iControl.CommonIPPortDefinition [] membersInPool = pool.getMembers(); System.out.println(" + Members"); for(int i=0; i

     

        }
    
        I need similar code for Virtual servers.