Skip to content

Instantly share code, notes, and snippets.

@geunho
Created January 10, 2019 02:02
Show Gist options
  • Save geunho/2444d2bbe10478a44dedc18660717cb3 to your computer and use it in GitHub Desktop.
Save geunho/2444d2bbe10478a44dedc18660717cb3 to your computer and use it in GitHub Desktop.
cmd batch to keep track of specific tcp connection count from netstat
: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