Forum Discussion

Jeffrey_Silver1's avatar
Jeffrey_Silver1
Icon for Nimbostratus rankNimbostratus
Nov 11, 2016

ICONTROL Method failure

I am using ICONTROL with POWERSHELL with LTM's at version 12.x. I am executing the following command and getting an error response:

 

Command:(Get-((server))

 

Response: Method invocation failed because [iControl.LocalLBVirtualServer] does not contain a method named 'get_content_policy'.

 

3 Replies

  • Would be easier to answer if we knew what code you were running. Are you running the Powershell script written by Joel Newton? Or something else from github?

     

  • No. Home grown over time by pulling together pieces of multiple examples. Basically, I am duplicating the MAP feature, but want to include the policy information.

     

  • Ok, I found the answer. All I needed to do was to update the PowerShell iControl DLL's to the latest version, which includes the get_content_policy method. If I would have looked closer at the documentation I may have noticed that this method is new to version 12.