Forum Discussion

maggie_129843's avatar
maggie_129843
Icon for Nimbostratus rankNimbostratus
Jul 15, 2013

how to get the pool statistics?

Hi,

 

 

I am trying to retrieve the Pool statistics using Icontrol as follows:

 

1. This code throws in an error:

 

string[] strName = interfaces.LocalLBPool.get_list();

 

for (int i = 0; i < strName.Length; i++)

 

{

 

string[] poolName = new string[] { strName };

 

LocalLBPoolPoolStatistics localPoolStatistics = interfaces.LocalLBPool.get_statistics(strName);

 

}

 

Error:{"There is an error in XML document (219, 74)."}

 

Inner Exception: "Instance validation error: 'STATISTIC_CURRENT_SESSIONS' is not a valid value for CommonStatisticType."}

 

 

Can someone please help. Thanks in advance.

 

3 Replies

  • This happens when the client library isn't up-to-date with the BIG-IP iControl version. If the BIG-IP returns an enumeration type that the client library doesn't know about this error occurs.

     

    Which library (Java, .Net) and version are you using and what's the version of the BIG-IP you are connecting to?

     

    I'm still working on the 11.4 libraries and haven't released them yet. If you are trying to connect to a 11.4 BIG-IP, you'll have to wait for my updated libraries in a week or so

     

    -Joe

     

  • Hi Joe,

     

     

    Appreciate your quick repsonse.

     

    .Net Framework 4.5, Client Dll(iControl) version is 11.1.01 while Big Ip is BIG-IP v11.2.1 (Build 797.0). Also, I could not find the property 'STATISTIC_CURRENT_SESSIONS' in the CommonStatisticType Class.

     

     

    Regards,

     

  • That's the issue then. Try downloading the latest iControl v11.3 assembly and give that a shot. It's available in the iControl Assemblies Lab's project under the Download.Labs menu.

     

     

    -Joe