Forum Discussion
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