Forum Discussion
Tyler_Robinson_
Nimbostratus
Sep 26, 2006retreiving members from a specific pool...
All I want to do is to get the members that belong to a certain pool group. This is the first time I've worked with iControl, or even an F5 product. Below is the script that I'm working with:
...
p-trendmgr-3d-ps1
p-uwc-ps1
p-virus-3d-dr1
p-virus-3d-ps1
p-webmail-dr1
Checking p-webmail-dr1 pool...
Error: SOAP-ENV:Server Could not find element by name: pool_names
The output prints the list of pools that we have, but I can't figure out how to locate the members of a specific pool.
Thanks for any help...
- The issue you are having is that you aren't naming the parameter (as indicated by the "could not find element by name" error). SOAP works by named elements and since perl is a dynamic language, you need to specify the parameter names in the code.
$soapResponse = $Pool->get_member( SOAP::Data->name(pool_names => [@poolName]) );
- Tyler_Robinson_
Nimbostratus
I have looked at the scripts within that directory, but they all deal with the LocalLB. However, when I run a simple script to gather the pools within the LocalLB, nothin is returned. When I run it against GlobalLB, then I get the list of pools. - My bad, I didn't look close enough to see you were working with GlobalLB pools and not LocalLB pools - they are different beasts. Try applying my code change (with the SOAP::Data part) and you should be all set.
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