Forum Discussion
Use PowerShell to Determine the number of current connections
Hello & Thank you in advance.
We are working on a Proof of Concept for Octopus Deploy. What I am needing is a way to use PowerShell to determine the number of connections to a node. I am wanting my script to say something to the effect of.
if of connections is greater than 0, wait 30 seconds, check again, when number of connections equal zero continue with deployment.
I have been through the iControl Cmdlets, and have done a fairly extensive web search. I am still at a loss. If anybody has knowledge of how to accomplish this or a link to the correct documentation, I would be forever grateful.
Thanks Again
1 Reply
- JRahm
Admin
You'll want the node address v2 interface with the get_all_statistics method, which will give you the listing of nodes and their specific stats. Then you can extract the specific stat you want. You should be able to modify Joe's article on Global Stats to reach your goal. Post back if you get stuck.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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