Forum Discussion
DustinRS_224614
Nimbostratus
Dec 01, 2016Powershell - Get Current Connection for Nodes
Hello,
I've been unable to find any posts with solutions to this problem. It's been asked a few times, but either the question is never answered, or at the very least nobody can provide a way to...
Michael_Jenkins
Cirrostratus
Dec 01, 2016If you are running 11.5 or greater (i.e. you can use iControlRest), then you could do something like this to get the info:
Invoke-RestMethod -Method GET -Uri 'https://username:password@bigip/mgmt/tm/ltm/node/stats?$select=addr,curSessions'
That will get you a list of the nodes with stats. You could also do this if you wanted all the stats for all the nodes:
Invoke-RestMethod -Method GET -Uri 'https://username:password@bigip/mgmt/tm/ltm/node/stats'
(where
username:password is an admin user on the bigip and bigip is the hostname or ip of the device)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