Forum Discussion
BenConrad_10265
May 04, 2011Nimbostratus
How to disconnect iControl session?
Hello,
I'm starting to write scripts with the iControl snapin. I understand that I can connect with Initialize-F5.iControl but how do I disconnect my session? Closing out of the PowerShell shell is not what I had in mind as a resolution.
Thanks,
Ben
- Hi Ben, the "session" you are creating just sets a local variable in the current iControl.Interfaces object (returned from Get-F5.iControl). Each request to the server is a distinct HTTP connection with separate authentication involved.
$ic = New-Object iControl.Interfaces $ic.initialize("hostname", "username", "password"); ... $ic = $null
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