Forum Discussion
Jeff_Brinkerho1
Sep 08, 2016Nimbostratus
Powershell iControl Snapin - DISconnecting from one LTM, connecting to another - same script
We have a need to populate an address datagroup from an external database. I currently have a working proof of concept in powershell using the F5 supplied iControl snapin. Works great.
However, we ...
Sep 15, 2016
All the initialize call does is to validate the credentials and then store them for use when accessing any of the other modules within that class. You can call Initialize again with the new values. Another option is to just allocate an iControl interfaces object for each destination and use that.
$ic1 = New-Object -TypeName iControl.Interfaces
$ic1.initialize(bigip1, user, pass)
$ic2 = New-Object -TypeName iControl.Interfaces
$ic2.initialize(bigip2, user, pass)
$ic1.LocalLBPool.get_list();
$ic2.LocalLBPool.get_list();
Hope this helps...
-Joe
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