Solved

Count network connections on a specific port

Posted on 2011-03-23
1
1,112 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
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…

679 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