Forum Discussion
Photo_G_84660
Nimbostratus
Sep 19, 2006LocalLBVirtualServer.Abort() method ?
Hi,
I'm trying to code a "stop" button sub routine in VB .NET, which will log out of the BIG-IP, so that a new iControl (PreAuthenticated) session can be established to another device (via a "start" button), without exiting the application and restarting. I see that there is a LocalLBVirtualServer.Abort() method, but I am not sure how to (or if I should) use this to cleanly end the connection. Does anyone have an example of this type of method in action?
Thanks in advance,
Scott H.
3 Replies
- There really is not a concept of logging in or out with iControl calls. The interface stubs that VS creates are basically wrappers around HTTP calls. Each call is independent of each other.
I believe the Abort() method you are referring to is part of the underlying base class that VS derives SOAP based proxies from and more than likely you aren't intended to use it.
All you need to do to change the BIG-IP that your app is pointing to is to change the Uri and Credentials in the generated proxy. Then all calls from then on will use the new SOAP endpoint for the new BIG-IP.
Here's some pseudo logicm_virtualServer.Url = "https://bigip1/iControl/iControlPortal.cgi" m_virtualServer.Credentials.Username = "username1" m_virtualServer.Credentials.Password = "password1" ... Make iControl calls to bigip1 ... m_virtualServer.Url = https://bigip2/iControl/iControlPortal.cgi" m_virtualServer.Credentials.Username = "username2" m_virtualServer.Credentials.Password = "password2" ... Make iControl calls to bigip2 ...
Make sense?
-Joe - Photo_G_84660
Nimbostratus
Got it sir. Thanks again! - Glad to help...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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