Eugene_Reznik_1
Oct 24, 2013Nimbostratus
Powershell iControl error getting pool member statistics
I am getting the error below when I am trying to get pool member statistics. I am not sure what i am doing wrong, as the error is not very descriptive.
Does anyone have any insight of why this would not be working?
$address = New-Object -TypeName iControl.CommonAddressPort;
$address.address =$member_name;
$address.port = $member_port;
$state = New-Object -TypeName "iControl.CommonEnabledState"
$state = "STATE_DISABLED";
(Get-F5.iControl).LocalLBPool.set_member_monitor_state( (, $pool_name), $address,(,$state));
Write-Host "Waiting for current connections to drop to zero..." -ForegroundColor Yellow;
**$MemberStatisticsA = (Get-F5.iControl).LocalLBPool.get_member_statistics( ($pool_name), $address);**
Exception calling "get_member_statistics" with "2" argument(s): "Exception caught in LocalLB::urn:iControl:LocalLB/Pool
::get_member_statistics()
Exception: Common::OperationFailed
primary_error_code : 16908336 (0x01020030)
secondary_error_code : 0
error_string : "
At line:1 char:73
+ $MemberStatisticsA = (Get-F5.iControl).LocalLBPool.get_member_statistics <<<< ( ($pool_name), $address);
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Thanks,