Forum Discussion
Jay_Allison_400
Nimbostratus
Aug 09, 2005Finding which virtuals are associated with a pool
So, at the end of the day I want to be able to create a perl script that allows me to enter a member IP address and it to return to me which pools and virtuals it belongs to.
There is an easy way to do this with pools with the 'node -> get_pool_membership' method, but there doesn't seem to be any corresponding method to take a pool and find out what virtuals it is associated with.
I can brute force this by listing all pools for a virtual and then sorting for the relevant pool, but I was hoping for a much easier and more elegant way to handle this.
I am also a bit worried about being able to brute force the pools out of rules as well.
Thoughts?
- Unfortunately on 4.x there is no method that takes as a parameter a pool and returns the virtuals that it's a member of. Your only course of action right now is to list out all the virtuals, call the LocalLB::VirtualServer::get_pool() method to return the pool for each virtual, and compare the pools. If a match occurs, then you know it's contained within the Virtual.
String [][] ITCMLocalLB::Rule::query_pool_associations ( in ITCMCommon::StringSequence rule_names );
- bknotwell_12713Historic F5 AccountHi Jay--
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