Forum Discussion

FTD_Routing_Hyd's avatar
FTD_Routing_Hyd
Icon for Nimbostratus rankNimbostratus
Dec 07, 2016

How to check active connections in icontrol ?

Hi, I need a help regarding F5 icontrol... When I disable a node using icontrol in powershell,it is disabled.I want to check the current connections on that node after disabling,I mean post disabling the node,for how much time it will have active connections ?I cannot find any predefined command in icontrol cmdlets for checking the active connections. Can anyone help ?

 

  • Please use iControl REST API with

    Invoke-RestMethod
    like below with your
    username
    ,
    password
    and
    bigip
    .

    PS> $securePwd = ConvertTo-SecureString "password" -AsPlainText -Force
    PS> $credential = New-Object System.Management.Automation.PSCredential("username",$securePwd)
    

    you can see nodename list

    PS> Invoke-RestMethod -Uri https://bigip/mgmt/tm/ltm/node/stats -Credential $credential | Format-List
    

    And you can see the stats of specified node with

    PS> Invoke-RestMethod -Uri https://bigip/mgmt/tm/ltm/node/{target-nodename}/stats -Credential $credential | Format-List