Forum Discussion
Brian_Schroeder
Nimbostratus
Jul 05, 2006iControl API incorrect?
Hi,
I'm trying to get statistics like CPU usage from a device. I'm using C on .NET. In the iControl API for 9.2.2, it says that I can use System.SystemInfo.get_cpu_usage_information() to this end.
So I went into the samples/ folder for the 9.2.2 sdk but the .cs file generated from System.SystemInfo.wsdl in there was out-of-date and didn't have this new method -- so I re-created a new .cs file from System.SystemInfo.wsdl. No big deal.
I created the new .cs file, but when I try get_cpu_usage_information(), like so,
LocalLBVirtualServer virtualServer = new LocalLBVirtualServer();
SystemInfo.SystemCPUUsage[] cpu_usages = systemInfo.get_cpu_usage_information().usages;
... I get the following error:An unhandled exception of type 'System.Web.Services.Protocols.SoapHeaderException' occurred in system.web.services.dll
Additional information: Unknown method "{urn:iControl:System/SystemInfo}:get_cpu_usage_information"
I really need to get the CPU usage from this device for a project I'm doing. Anyone have a clue as to what's going on?
Thanks if you have any ideas,
Brian
- Brian_Schroeder
Nimbostratus
Just checked, and apparently I'm running 9.1.x on my device and this feature, get_cpu_usage_information(), was only added in 9.2 -- so this is why I'm having the SOAP error. - This information is not exposed programmatically until v9.2. For versions prior to this the only way I know how to get it is via console access and a combination of system commands.
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