Tracking concurrent telnet sessions - Windows 2003
26290 pts.
0
Q:
Tracking concurrent telnet sessions - Windows 2003
Does anyone know a good method of tracking concurrent telnet sessions in Windows Server 2003? I know you can type netstat -an | find ":23" to find all connections to ports beginning with 23 but this is an issue for other services listening on ports like 2301 or 2381 for example.

We are trying to track concurrent telnet sessions for licensing purposes.

Thanks for the assistance.

Software/Hardware used:
Windows, Windows Server 2003, telnet
ASKED: Sep 25 2009  5:56 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
23535 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button
You basically answered your own question. All you need to do is add a space after 23.

netstat -an | find ":23 "

That will weed out the 2301 or 2381 ports from the output.
Last Answered: Sep 25 2009  6:50 PM GMT by Mshen   23535 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Troy Tate   0 pts.  |   Sep 25 2009  8:03PM GMT

True - good catch so now just need a quick way to count the number of lines returned at the command prompt.

 

Troy Tate   0 pts.  |   Sep 25 2009  8:03PM GMT

btw - thanks MShen.

 

Mshen   23535 pts.  |   Sep 25 2009  10:31PM GMT

You can use a powershell command to count the lines.

@(netstat -an | select-string “:23 “).count

 

Sumeshbnr   1590 pts.  |   Sep 29 2009  4:48AM GMT

HI,

By the bultin network monitor graphical tool in windows 2003 can do an dyou can filter based on port /application to view the output.

Thanks.

 
0