Forum Discussion

Alex__Applebaum's avatar
Jun 28, 2012

How to update Powershell to use new v11 iControl calls

Newb to powershell so probably a stupid question but what is the proper way to update Powershell Snapin to use new v11 iControl calls. Thought it was as easy as updating the iControl.dll from something like:

 

 

https://devcentral.f5.com/Community...fault.aspx

 

 

 

 

 

but obviously not.

 

 

 

 

 

PS C:\Users\client1> (Get-F5.iControl).GlobalLBVirtualServer.get_list()

 

 

 

name address

 

---- -------

 

/Common/vs_10_70_2_53_53_gtm 10.70.2.53

 

/Common/one_connect_vs 10.70.0.104

 

.....

 

 

 

 

 

Simply want to start using the new v11 V2 calls.

 

 

 

PS C:\Users\client1> (Get-F5.iControl).GlobalLBVirtualServerV2.get_list()

 

You cannot call a method on a null-valued expression.

 

At line:1 char:51

 

+ (Get-F5.iControl).GlobalLBVirtualServerV2.get_list <<<< ()

 

+ CategoryInfo : InvalidOperation: (get_list:String) [], RuntimeException

 

+ FullyQualifiedErrorId : InvokeMethodOnNull

 

 

 

 

 

 

 

 

 

  • Alex, most likely your best bet is to download the latest installer and then run it. If that doesn't work, you might have to remove/re-install.

     

     

    Let me know if either of those steps don't work.

     

     

    I'm working on the 11.2 PowerShell version right now so I'll test the upgrade and report back.

     

     

    -Joe

     

  • Duhh, That would make sense. Was definitely having my little forest through the trees moment. Thinking I know it needs the new wsdl and didn't see the python dynamic equivalent wsdls = ['XXX', 'XXXX'] so thought could simply swap out a file or something :)

     

     

    In any case, completely uninstalled and Re-installed "iControl Cmdlets v11.0.0 msi" from:

     

     

    https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/3/aft/1172127/showtab/groupforums/Default.aspx

     

     

    and worked like a charm. I'll be on the lookout for v11.2!

     

     

    Thanks!