Forum Discussion
Photo_G_84660
Nimbostratus
Mar 21, 2007"Unable to cast object of type 'System.Object[]' to type 'iControl.LocalLBPoolMemberMemberSessionState[][]'."
Hi,
I'm trying to code a method to disable pool members in VB .NET (using the new iControl.dll, THANKS JOE!!!), and it appears (in the debugger) to properly present the [pool_names] string ...
Daedulus69_1036
Nimbostratus
Feb 12, 2008Can I get a powershell port of this?
I am able to declare this:
$IP = New-Object -TypeName iControl.CommonIPPortDefinition
$IP.address = "1.1.1.1"
$IP.port = 9090
But when I try to pull stats I get:
PS E:\F5> $pmstat = $ic.locallbpoolmember.get_statistics("CRISA", $IP)
Cannot convert argument "1", with value: "iControl.CommonIPPortDefinition", for "get_statistics" to type "iControl.Comm
onIPPortDefinition[][]": "Cannot convert "iControl.CommonIPPortDefinition" to "iControl.CommonIPPortDefinition[][]"."
At line:1 char:47
+ $pmstat = $ic.locallbpoolmember.get_statistics( <<<< "CRISA", $IP)
How do I get it of type iControl.CommonIPPortDefinition[][] ?
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
