Forum Discussion

Photo_G_84660's avatar
Photo_G_84660
Icon for Nimbostratus rankNimbostratus
Sep 19, 2006

LocalLBVirtualServer.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.
  • 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 logic

    m_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