Brian_Schroeder
Jul 05, 2006Nimbostratus
iControl 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