Forum Discussion

pavan_70758's avatar
pavan_70758
Icon for Nimbostratus rankNimbostratus
Dec 01, 2010

get member statistics

Hello,

 

I have used

 

 

http://devcentral.f5.com/wiki/default.aspx/iControl/PoolStatsFor4xAnd9x.html to get the pool membet stats.

 

 

I am getting all the values as 0 as following but when i actually login i can see stats in F5 UI.

 

 

+-> MEMBER 10.36.138.124:7771

 

| STATISTIC_SERVER_SIDE_BYTES_IN : 0

 

| STATISTIC_SERVER_SIDE_BYTES_OUT : 0

 

| STATISTIC_SERVER_SIDE_PACKETS_IN : 0

 

| STATISTIC_SERVER_SIDE_PACKETS_OUT : 0

 

| STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS : 0

 

| STATISTIC_SERVER_SIDE_MAXIMUM_CONNECTIONS : 0

 

| STATISTIC_SERVER_SIDE_TOTAL_CONNECTIONS : 0

 

| STATISTIC_PVA_SERVER_SIDE_BYTES_IN : 0

 

| STATISTIC_PVA_SERVER_SIDE_BYTES_OUT : 0

 

| STATISTIC_PVA_SERVER_SIDE_PACKETS_IN : 0

 

| STATISTIC_PVA_SERVER_SIDE_PACKETS_OUT : 0

 

| STATISTIC_PVA_SERVER_SIDE_CURRENT_CONNECTIONS : 0

 

| STATISTIC_PVA_SERVER_SIDE_MAXIMUM_CONNECTIONS : 0

 

| STATISTIC_PVA_SERVER_SIDE_TOTAL_CONNECTIONS : 0

 

| STATISTIC_TOTAL_REQUESTS : 0

 

| STATISTIC_TOTAL_PVA_ASSISTED_CONNECTIONS : 0

 

| STATISTIC_CURRENT_PVA_ASSISTED_CONNECTIONS : 0

 

+-> MEMBER 10.36.138.124:7772

 

| STATISTIC_SERVER_SIDE_BYTES_IN : 0

 

| STATISTIC_SERVER_SIDE_BYTES_OUT : 0

 

| STATISTIC_SERVER_SIDE_PACKETS_IN : 0

 

| STATISTIC_SERVER_SIDE_PACKETS_OUT : 0

 

| STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS : 0

 

| STATISTIC_SERVER_SIDE_MAXIMUM_CONNECTIONS : 0

 

| STATISTIC_SERVER_SIDE_TOTAL_CONNECTIONS : 0

 

| STATISTIC_PVA_SERVER_SIDE_BYTES_IN : 0

 

| STATISTIC_PVA_SERVER_SIDE_BYTES_OUT : 0

 

| STATISTIC_PVA_SERVER_SIDE_PACKETS_IN : 0

 

| STATISTIC_PVA_SERVER_SIDE_PACKETS_OUT : 0

 

| STATISTIC_PVA_SERVER_SIDE_CURRENT_CONNECTIONS : 0

 

| STATISTIC_PVA_SERVER_SIDE_MAXIMUM_CONNECTIONS : 0

 

| STATISTIC_PVA_SERVER_SIDE_TOTAL_CONNECTIONS : 0

 

| STATISTIC_TOTAL_REQUESTS : 0

 

| STATISTIC_TOTAL_PVA_ASSISTED_CONNECTIONS : 0

 

| STATISTIC_CURRENT_PVA_ASSISTED_CONNECTIONS : 0

 

 

 

 

Kindly provide your help.

 

 

 

Thanks,

 

Pavan

 

 

 

 

 

 

7 Replies

  • Has it to do anything with user account privileges. I am using a operator account
  • It shouldn't have to do with account privileges because an operator account should have read-access to the stats. If you didn't have privileges, you would get a runtime exception.

    I'd try to turn on the perl SOAP tracing by switching these two lines at the top

    use SOAP::Lite + trace => qw(method debug);
    use SOAP::Lite;

    To

    use SOAP::Lite + trace => qw(method debug);
    use SOAP::Lite;

    Then, you'll get the entire SOAP request/response print out to the console. If you could post the response for the get_statistics() method in question, we can see if the data truly isn't there, or if it's a client processing problem.

    -Joe

  • Hello Joe,

     

    Can you look into the output and advise.

     

     

    Thanks,

     

    Pavan
  • Looks like the XML in the result was wiped out in the forum post. Any chance you can post it as an attachment? At the bottom of the forum reply is a "Attachments" section where you can upload a file and then after it's uploaded attach it to the forum post.

     

     

    It looks to me what I can see is that there is some data coming back, but without the full response stream it's hard to tell.

     

     

    -Joe

     

  • Hi Joe,

     

    I have attached the output response. Please let me know if you need any other details.

     

     

    Thanks,

     

    Pavan

     

  • Here's what I see from your trace.

     

     

    You seemed to have truncated your response. I'm assuming it was you that did this and not the total result for the trace. It showed you had 50 pools, yet only 3 were returned.

     

     

    Going with what's returned, you have 3 pools on your system: 'p-poolname1', 'p-poolname2', and 'default_gateway_pool'. These should be visible in the GUI under the Local Traffic "Pools" menu item.

     

     

    The response for get_statistics with the values looks to be truncated as well as they return 16 statistic values yet there are only 2 items in each of the 3 responses.

     

     

    For those 2 items, it seems the 'p-poolname1' and 'p-poolname2' pools have no statistics associated with them and the default_gateway_pool does have some values in there as indicated on your output. Is this not what you are seeing in the GUI?

     

     

    If things are not what is matching in the GUI, could it be that you are using admin partitions? By default, iControl uses the "Common" partition. If you are working in another partition, then you will have to explicitly call the Management.Partition.set_active_partition method to change out of Common.

     

     

    http://devcentral.f5.com/wiki/default.aspx/iControl/Management__Partition__set_active_partition.html

     

     

    -Joe

     

  • Hello Joe,

     

    Looks like i was checking the INACTIVE LB and hence the values were showing zero. The Active is giving the values.

     

    Thanks a lot for your help. Your clues helped in digging out the issue.

     

     

    Pavan