Forum Discussion
Heiko_Engemann_
Nimbostratus
Oct 15, 2009max 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
- hoolio
Cirrostratus
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 - Heiko_Engemann_
Nimbostratus
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 - hoolio
Cirrostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
