Created
January 10, 2019 02:02
-
-
Save geunho/2444d2bbe10478a44dedc18660717cb3 to your computer and use it in GitHub Desktop.
cmd batch to keep track of specific tcp connection count from netstat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:loop | |
(echo|set /p="%date% %time% " & netstat -anon | find /c ":8002 ") >> 8002_netstat.log | |
ping localhost -n 11 > nul | |
goto loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment