Forum Discussion
Disable poolMember Exception
I met the similar issue and didn't find the answer from devcentral. anyone can help?
BIG-IP version: BIG-IP 11.3.0 Build 3164.27 Engineering Hotfix HF10 Powershell version:
Name : Windows PowerShell ISE Host Version : 2.0
script
==== Write-Host "Waiting for current connections to drop to zero..." $MemberDef = New-Object -TypeName iControl.CommonIPPortDefinition; $MemberDef.address = $member_addr; $MemberDef.port = $member_port;
$MemberDefAofA = New-Object -TypeName "iControl.CommonIPPortDefinition[][]" 1,1 $MemberDefAofA[0][0] = $MemberDef;
$cur_connections = 1;
while ( $cur_connections -gt 0 ) { $MemberStatisticsA = (Get-F5.iControl).LocalLBPoolMember.get_statistics( (, $pool_name), $MemberDefAofA); $MemberStatisticEntry = $MemberStatisticsA[0].statistics[0]; $Statistics = $MemberStatisticEntry.statistics; foreach ($Statistic in $Statistics) { $type = $Statistic.type; $value = $Statistic.value;
if ( $type -eq "STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS" )
{
just use the low value. Odds are there aren't over 2^32 current connections.
If your site is this big, you'll have to convert this to a 64 bit number.
$cur_connections = $value.low;
Write-Host "Current Connections: $cur_connections"
}
}
Start-Sleep -s 1
}
=== Error code
Exception calling "get_statistics" with "2" argument(s): "Exception caught in L ocalLB::urn:iControl:LocalLB/PoolMember::get_statistics() Exception: Common::OperationFailed primary_error_code : 16908336 (0x01020030) secondary_error_code : 0 error_string : " At line:1 char:72 + $MemberStatisticsA = (Get-F5.iControl).LocalLBPoolMember.get_statistics <<<< ( ($pool_name), $MemberDefAofA); + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException
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