iControl Apps - #04 - Graceful Server Shutdown
Published Jul 17, 2008
Version 1.0Was this article helpful?
Hello Brent Rubeck; to get just the number of connections on the Nodes I use the following:
Initialize-F5.iControl -HostName $F5 -Credentials $user
$nodes=Get-F5.LTMNodeAddress | Select-Object -ExpandProperty Name
$connections=Get-F5.iControl
$connections.LocalLBNodeAddress.get_statistics($nodes) | %{$_.statistics.statistics | ? {$_.type -eq "STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS"} | %{$_.value.low} }