Forum Discussion
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
- ekaleido
Cirrus
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?
- Jeffrey_Silver1
Nimbostratus
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.
- Jeffrey_Silver1
Nimbostratus
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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