Forum Discussion
Richard__Harlan
Oct 26, 2004Historic F5 Account
get_node_server_list
This is my first iControl script and I am havein a little problem. I can not for the life of me get any output from the script. But if I run the script in SOAP Debug mode it look like the system is ge...
Loc_Pham_101863
Oct 26, 2004Historic F5 Account
Hi,
Give this a try:
------------------------------------------------------------------------
Query Node List
------------------------------------------------------------------------
$soap_response = $soap->get_node_server_list();
if ( $soap_response->fault )
{
print $soap_response->faultcode, "(faultstring) ", $soap_response->faultstring, "\n";
print $soap_response->faultcode, "(faultdetail) ", $soap_response->faultdetail, "\n";
}
else
{
print "Available Nodes:\n";
my $nodeNumber = 0;
my @node_def_list = @{$soap_response->result};
foreach my $node_def (@node_def_list)
{
print "\t[$nodeNumber] = '", $node_def->{"address"}, ":", $node_def->{"port"}, "'\n";
$nodeNumber++;
}
}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
