Forum Discussion
sean_87481
Nimbostratus
Jan 12, 2009Getting VS list with name, address, port
Hello!
In perl, I am able to successfully use the get_list() method to get a list of virtual servers, but I want to pull out the address and port information as well.
It ...
Jan 12, 2009
You'll likely want to cast $stuff to an array
$soapResponse = $VirtualServer->get_destination(
SOAP::Data->name(virtual_servers => [@g_vs_list])
);
@dest_list = @{$soapResponse->result};
foreach $IPPortDef (@dest_list)
{
$addr = $IPPortDef->{"address"};
$port = $IPPortDef->{"port"};
print "$addr:$port\n";
}
I don't have access to my BIG-IP to test this out right now so I'm not sure if there are any typo. But I did find one of my old scripts that uses that method. I just added it to the iControl CodeShare.
http://devcentral.f5.com/wiki/default.aspx/iControl/PerlVirtualShow.html
url]http://devcentral.f5.com/wiki/default.aspx/iControl/PerlVirtualShow.html">Click here
Hopefully that gives you enough to go by.
-Joe
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