Forum Discussion
How to check active connections in icontrol ?
- Dec 08, 2016
Please use iControl REST API with
like below with yourInvoke-RestMethod
,username
andpassword
.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
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
Hi Uchi, I ran the following command to check the current connections on a active node .....where, I replaced bigip with bigip ip address and replaced target node with the node name
Invoke-RestMethod -Uri {target node}/stats -Credential $credential | Format-List
The following is the result the I am receiving post executing the above command..
kind : tm:ltm:node:nodestatsgeneration : 1selfLink : {target node}/stats?ver=11.6.1entries : @{addr=; curSessions=; monitorRule=; monitorStatus=; tmName=; serverside.bitsIn=; serverside.bitsOut=; serverside.curConns=; serverside.totConns=; sessionStatus=; status.availabilityState=; status.enabledState=; status.statusReason=; totRequests=}
So, do I need to add any of the above entries in the Invoke-Restmethod command or here itself should I see all the node stats.
Please bear with me,as I am new to API
Thanks
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