Forum Discussion
OTS02
Cirrus
Jan 28, 2009un initialize
Is there a way to terminate an http session with an f5 box with icontrol?
I know that to establish a connection use:
iControl.initialize("unit", "admin", password)
But what is the command to tear down the connection, short of ending the program?
The reason I ask, is because I want to write a program for web developers to enable/disable pool members. I want the program to determine which f5 unit is active, and only act on the active unit. If I have the program log into unit 1, determine that unit 1, then initiate a connection to unit 2, how do I know that the following calls will not go to unit 1?
- There are no persistent connections with iControl. Each method call causes a new HTTP Post command to be sent to the BIG-IP. The initialize method in the iControl assembly, sets the target and credentials and then verifies that they work. If you make a subsequent initialize call passing in another device, the internal values (in the iControl.Interfaces class) for the hostname and credentials will be overwritten and used on subsequent calls.
- OTS02
Cirrus
Makes perfect sense - thank you!
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