Forum Discussion
adam_tombleson_
Nimbostratus
Mar 05, 2007get_statistics trouble
Hey there, im trying to get the stats from one virtual server. I seem to be having trouble though. Am i calling this wrong? My result set is always empty.
Any help would be great,
Cheers,
Adam
(Perl and Big-Ip 9.1.2).
my @vs_list;
my $vs_def = {
name => $name,
address => $address,
port => $port
};
push @vs_list, [$vs_def];
my $soapResponse = $connection->get_statistics(
SOAP::Data->name( virtual_servers => [@vs_list] )
);
my @res = @{$soapResponse->result->{"statistics"}};
- You are giving a bit too much to the get_statistics method...
VirtualServerStatistics LocalLB::VirtualServer::get_statistics( in String [] virtual_servers );
my $soapResponse = $connection->get_statistics( SOAP::Data->name( virtual_servers => [$name] ) ); my @res = @{$soapResponse->result->{"statistics"}};
push $vs_list, $name1; push $vs_list, $name2; my $soapResponse = $connection->get_statistics( SOAP::Data->name( virtual_servers => [@vs_list] ) ); my @res = @{$soapResponse->result->{"statistics"}};
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