Forum Discussion
Cynthia_18735
Nimbostratus
May 06, 2008More efficient way to get pool member status per URL using iControl?
I have a perl script that is does the following:
(1) Gets a list of WideIP's from GlobalLB/WideIP
(2) For each WideIP, gets a list of Pool names from GlobalLB/Pool.
...
May 06, 2008
The method prototype is the following:
MemberObjectStatus [] [] GlobalLB.PoolMember.get_object_status(
in String [] pool_names,
in Common__IPPortDefinition [] [] members
);You are passing in 1-d arrays for both paramters. You'll need to convert the second parameter into a 2-d array.
Something like this:
$members =
{
address => $address,
port => $port
};
push @List, $members;
push @Lists, @List
$soapResponse = $POOLMEMBER->get_object_status(
SOAP::Data->name(pool_names => [ @mpools ]),
SOAP::Data->name(members => [ @Lists ])
);You'll just want to make sure that you do one push on the Lists array for each pool in your mpools array.
-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
