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 eas...
Aug 09, 2005
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.
As for the pools from Rules, I do have something to help you with there. You can use the LocalLB::Rule::get_pool_associations() method to return the pools associated with the given rule
String [][] ITCMLocalLB::Rule::query_pool_associations
(
in ITCMCommon::StringSequence rule_names
);This method has been available since BIG-IP v4.5.
-Joe
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