Solved

Count network connections on a specific port

Posted on 2011-03-23
1
1,104 Views
Last Modified: 2012-05-11
I need to know at any point how many users are connecting to an internal web based app. So far I have used netstat to see the connections and count them manually but we are going to have around 2000 users going live today. This is what I have so far is there any way i can use this to count the connections instead of listing?

netstat -an |findstr 7001
0
Comment
Question by:chrisdownes
1 Comment
 
LVL 10

Accepted Solution

by:
dfke earned 500 total points
ID: 35198349
netstat -an | find "7001" | find /C "ESTABLISHED"

That should count the established connections containing 7001
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Join & Write a Comment

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now