Forum Discussion
3 Replies
Sort By
- HamishCirrocumulusAssuming you mean iControl, ye there is.. If you pull the interface counters you can calculate the bandwidth over time. The code to pull the interface counters is something like the one below
my $Interface = SOAP::Lite -> uri('urn:iControl:Networking/Interfaces') -> proxy("$sProtocol://$icUser:$icPass\@$icServer:$icPort/iControl/iControlPortal.cgi", cookie_jar => $cookieJar); HNM (This bit just reads a list of interfaces from a DB) $sql_query{sel_nt_4stat}->execute($devID); while ( my $row = $sql_query{sel_nt_4stat}->fetchrow_hashref()) { dbprint "getNetworkStats: adding interface $row->{name}\n"; push(@nList, $row->{name}); } my $soapResponse = $Interface->get_statistics(SOAP::Data->name(interfaces => [@nList])); my ($status, $text)=&checkResponse($soapResponse); $StatList = $soapResponse->result;
- Sung_85708NimbostratusThanks for the reply.
- Sun, iControl is a web service API to manage BIG-IP devices. We supply the WSDL description files for those services for you to integrate into your client language specific toolkit. For several languages, we've provided libraries that make that step easier. We have library support for .Net, Java, and Python at this time. Using SOAP::Lite in perl if the route we support for perl at this point.