Forum Discussion
Michel_van_der_
Nimbostratus
Apr 13, 2005Compatibility issue
I'm using some perl SOAP::Lite calls, specifically
ITCMLocalLB:Pool:get_member_list which presumably is
implemented as a compatibility call. But instead of
getting something like:...
Loc_Pham_101863
Apr 13, 2005Historic F5 Account
What does your call look like? Here's some sample code that gets the pool members:
.....
..... set up code, also populate $sPool variable
.....
------------------------------------------------------------------------
Get Member List
------------------------------------------------------------------------
(@member_list) = getPoolMemberList($sPool);
foreach my $member (@member_list)
{
print $member->{"address"}, ":", $member->{"port"}, ", ";
}
----------------------------------------------------------------------------
Get the list of pool members
----------------------------------------------------------------------------
sub getPoolMemberList()
{
my ($poolName) = @_;
my @members;
my $soap_response =
$soap->get_member_list
(
SOAP::Data->name ( pool_name => $poolName )
);
if ( $soap_response->fault )
{
print $soap_response->faultcode, "\n";
print $soap_response->faultstring, "\n";
exit("");
}
else
{
@members = @{$soap_response->result};
}
return @members;
}
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
