Forum Discussion
Wade_98751
Nimbostratus
Aug 15, 2008Having .initialize issues
Good morning,
Need some assistance initializing (objIControl.initialize) as it fails to return true. I downloaded the iControlAssembly and ran the testclient which also returns the error 'not initialized' from the command prompt. This tells me known good code is having the same issue as my code.
What is strange is that I can log into the big ip's cgi URL from the same server I'm running the code from, the CGI URL returns the data I'm looking to use. This tells me that the network connectivity is good and my credentials work to access the BIP's API. Using IE 7.0 I'm prompted to accept the issue with the big ip's local certificate and then I'm challenged for credentials. Do you think having to acknowledge the certificate issue is causing the code to fail?
Below is the VB .net code I'm testing connectivity with in VS 2008. I also have issues initializing the icontrol object from C code shown on DevCentral. Any guidance on how to fix this issue would be greatly appreciated. After successfully initializing the connection I'm looking to disable pool members one by one as we institute a weekly scripted reboot job on our Windows 2003 server web farm.
Thanks for your assistance!
Wade
https://" + bigip_address + "/iControl/iControlPortal.cgi
Basic VB .net code I'm using to test the iControl object:
Module Module1
Sub Main()
Dim objIControl As New iControl.Interfaces
Dim arrPoolList As Array
Dim isGood As Boolean
isGood = objIControl.initialize("172.16.200.8", 443, "adminuser", "adminuserpass", "proxy.contoso.com", 8080, "proxyuser", "proxyuserpass")
'arrPoolList = objIControl.LocalLBPool.get_list
'For x = LBound(arrPoolList) To UBound(arrPoolList)
'Console.WriteLine("Pool name = " & arrPoolList(x))
'Next x
End Sub
End Module
- Don_MacVittie_1Historic F5 AccountHi Wade,
- Wade_98751
Nimbostratus
Hey Don, - Don_MacVittie_1Historic F5 AccountOkay, one down. I don't maintain it, but Joe told me once it requires 2.0 or later.
- Wade_98751
Nimbostratus
Don, - Don_MacVittie_1Historic F5 AccountHey Wade,
- Wade_98751
Nimbostratus
Hi Don, - Wade_98751
Nimbostratus
I was reading the iControl Quickstart Guide for .NET and noticed the blurb below but I dont have access to the link to configuring 'Configuring .NET SSL Security in a Trusted Environment'. This looks important and seems like I may need to do this for my development environment. - Don_MacVittie_1Historic F5 AccountHi Again Wade,
- Wade_98751
Nimbostratus
Yes, the direct linked worked. sorry to bother with stupid PEBKAC questions. - Don_MacVittie_1Historic F5 AccountHey Again,
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