Forum Discussion
OTS02
Cirrus
17 years agoun 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?
2 Replies
- 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.
Make sense?
-Joe - OTS02
Cirrus
Makes perfect sense - thank you!