iControl Apps - #04 - Graceful Server Shutdown
This question comes up quite often here on DevCentral: "How can I gracefully shut down my servers for maintenance without disrupting current user sessions?". In fact, I answered this question just t...
Published Jul 17, 2008
Version 1.0Francisco_Ferri
Jul 20, 2016Nimbostratus
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} }