Forum Discussion
Zdenda
Cirrus
Oct 15, 2013Pool member control issue when non-default partition is used
Hi, I use script from https://devcentral.f5.com/wiki/iControl.PsPoolMemberControl.ashx. My problem is when I call function Disable-Member, I get error 16908336. I run this script command by command a...
Eugene_Reznik_1
Nimbostratus
Oct 24, 2013Even if you have switched to the correct partition you still need to specify the partition for both the server and the pool in your code.
(Get-F5.iControl).ManagementPartition.set_active_partition( (,"PARTITION_NAME") )
Write-Host (Get-F5.iControl).ManagementPartition.get_active_partition() -ForegroundColor Yellow
$address = New-Object -TypeName iControl.CommonAddressPort;
$address.address ="/PARTITION_NAME/SERVER_NAME"
$address.port = 666;
$MemberStatisticsA = (Get-F5.iControl).LocalLBPool.get_member_statistics( ("/PARTITION_NAME/POOL_NAME"), $address);
$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"
}
}- ZdendaOct 24, 2013
Cirrus
Ah, you was quicker then me, I noticed it's missing in the code above by mistake. Now there is actuall code, error is the same
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