Forum Discussion

Heiko_Engemann_'s avatar
Heiko_Engemann_
Icon for Nimbostratus rankNimbostratus
Oct 15, 2009

max count of poolmembers via snmp

Hello,

 

 

is there an oid to give me the maximum count of poolmembers in an bigIP?

 

 

"1.3.6.1.4.1.3375.2.2.5.1.2.1.8" give me the count of active poolmembers,

 

but I havent found one that tells me how much there are at all.

 

 

A collueage had a soap tool in the past, but this is way to slow and takes

 

a couple of minutes to give me a list of roughly 60 members.

 

The snmp query takes a few seconds.

 

 

 

hope you can help

 

 

greetings

 

 

3 Replies

  • I'm not sure whether the 9.x MIBs have this info. You could possibly get a list of the total members and count that.

     

     

    If you're looking for something relatively light and simple compared with an iControl app, you could also use SSH and bigpipe to do this:

     

     

    Get list of pool names

     

    ssh USER@HOST "b pool list| grep ^pool | cut -d ' ' -f 2"

     

     

    Get number of members for one pool by counting number of IP addresses in list

     

    ssh USER@HOST "b pool POOL_NAME list|egrep -c '([0-9]{1,3}\.){3}[0-9]{1,3}'"

     

     

    Aaron
  • Hello Hoolio.,

     

     

    this works perfect.

     

    I already have a list of pools via snmp, now I just put this list in a loop that does your second ssh statement and im done.

     

     

    thanks a lot

     

     

    .h
  • That's good to see.

     

     

    I was trying to come up with a crafty way to run a single SSH command and loop through each pool name and print out a count of the total members, but couldn't quite get there. If you figure out something like this or just a shell script which can be run from the remote client, can you reply with it?

     

     

    Thanks,

     

    Aaron