Forum Discussion
robertoq_79472
Nimbostratus
Sep 02, 2009Get ALL virtual server names?
Hi There,
Fairly new to using iControl. I've been going through the API reference and I don't seem to find a way to get a list of ALL the virtual servers currently on my LTM. I want ...
jethro_106302
Nimbostratus
Sep 14, 2009Hello,
I ended up getting the list of partitions the following way:
sub getPartition ()
{
my $soapResponse = $Partition->get_partition_list();
&checkResponse($soapResponse);
my $plist = %{$soapResponse}->{'_content'}[4]{'Body'}{'get_partition_listResponse'}{'return'};
return $plist;
}
my $rplist = &getPartition();
if (scalar($rplist) > 1) {
foreach my $partition (@$rplist) {
print "Dumping VS Details for partition $partition->{'partition_name'}\n";
&lookup($partition->{'partition_name'});
}
} else {
&lookup();
}
thanks to Data::Dumper to figure the mess out of the structure returned.
Is there a better way of dealing with the soapresponse, and populate an array of references to the partition hashes?
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