Forum Discussion
Chris_Chaloux_1
Nimbostratus
Dec 22, 2009Power Shell Question - Disable Pool Member
Hello -
I'm running a power shell script that enables / disables a pool member. It is from the example scripts out her on DevCentral.
I have a question / issue. I want to force a n...
Chris_Chaloux_1
Nimbostratus
Dec 22, 2009Thanks, Bhattman.
I had looked at it previously. Just to see if it will work for me out of the box I ran it. Some functions work great while the most important one I need to have work returns the following exception:
Cannot convert argument "1", with value: "System.Object[]", for "set_monitor_state" to type "iControl.LocalLBPoolMemberMemberMonitorState[][]": "Cannot convert the "S
ystem.Object[]" value of type "System.Object[]" to type "iControl.LocalLBPoolMemberMemberMonitorState[]"."
At D:\webeng\scripts\F5\alter_node_status2.ps1:261 char:64
+ (Get-F5.iControl).LocalLBPoolMember.set_monitor_state <<<< (
+ CategoryInfo : NotSpecified: ( [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
What am I missing!?!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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