c
6 TopicsSystem.InvalidOperationException was unhandled when using LocalLBVirtualServer.get_default_pool_name
Hi, I'm trying to use This snippet "C Polling Default Pool Connections" and the first half is working good until it gets to the this line "poolStats = m_interfaces.LocalLBPool.get_statistics(poolBatch);" then I get this exception : System.InvalidOperationException was unhandled HResult=-2146233079 Message=There is an error in XML document (232, 79). Source=System.Xml StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at iControl.LocalLBPool.get_statistics(String[] pool_names) in c:\src\iControl\2005\iControl\iControl_9_4_0\Interfaces\LocalLB\LocalLBPool.cs:line 642 .... etc can someone help me solve this problem?509Views0likes3CommentsHow to programmatically activate license for Bigip using C#
I am looking for some C sample to activate license for Bigip. I have looked into the pycontrol https://devcentral.f5.com/wiki/iControl.pyControl-v2-License-BIGIP.ashx and am trying to do the similar thing in C. The wiki mentions a web service https://activate.f5.com/license/services/urn:com.f5.license.v5b.ActivationService?wsdl, but when I tries to use wsdl.exe to create a proxy class for this web service, I got the following errors: D:\temp>wsdl https://activate.f5.com/license/services/urn:com.f5.license.v5b.Act ivationService?wsdl Microsoft (R) Web Services Description Language Utility [Microsoft (R) .NET Framework, Version 4.0.30319.17929] Copyright (C) Microsoft Corporation. All rights reserved. Error: There was an error processing 'https://activate.f5.com/license/services/u rn:com.f5.license.v5b.ActivationService?wsdl'. - The document at the url https://activate.f5.com/license/services/urn:com.f5. license.v5b.ActivationService?wsdl was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be s chema and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'. - Report from 'DISCO Document' is 'Discovery document at the URL https://activat e.f5.com/license/services/urn:com.f5.license.v5b.ActivationService?wsdl could no t be found.'. - The document format is not recognized. - Report from 'WSDL Document' is 'There is an error in XML document (58, 16).'. - Namespace prefix 'intf:urn' is not defined. If you would like more help, please type "wsdl /?". Does anyone know if how to solve the problem? or is it the right way to access the web service at all in C? thanks Wai410Views0likes1CommentWhere is the best place for a C# developer to get started?
Hey guys, I am looking to update our software deployment process to automatically move servers in and out of the available pools using C. The problem I am having is I am not sure where to start. It looks like there is a REST API available, but I can't find any tutorials or samples related to C (I am not a developer, so I need some hand holding). I found the iControl SDK which does have a lot of great C examples, and would bet a good place to start, but it seems very dated, and I am not sure it is the suggested technology at this point. In addition to those two, there appears to be other API options available. So my questions is, which option is preferred for folks starting out, and where would I find C tutorials for those examples? If it helps, we are using the BigIP LTM product, and I think we are on the latest version.301Views0likes1CommentBIG-IP iControl : how to retrieve contents of external data-group
F5 BIG-IP LTM VE v11.4.0 on ESXi C using iControl API : I need to retrieve the contents of a data-group of type external-file. This is the same thing as retrieving the system data-group file associated with the external data-group.251Views0likes2CommentsNeed assistance find where i can pull pool member info with iControl
I am pulling Pool information and Pool Member information using the iControl.dll lib in C I would also like to be able to pull the information about a pool member such as when it was disabled like it would show when you look at a member in the UI it shows a data and time and other details about being disabled. Where would i be able to retrieve this data from in the iControl lib?215Views0likes0CommentsExporting ASM Policies in C#?
I am exploring the .NET API, and as a test case I'd like to use the export_policy_xml method to export a policy and save the output file to my desktop. I've looked at code samples and read through the API documentation but I haven't found anything that will get me going in the right direction. I am able to connect to our f5 and return bits of information here and there, but I've hit a roadblock trying to export the policy. Thoughts, comments, or suggestions? Thanks!159Views0likes1Comment