Tuesday, November 10, 2009 12:10 PM usoup

Quick Find on Command Prompt Result

This kind of windows command is good to trace network connectivity. We can retrieve result specifically on certain search conditions. The best part is, we can keep the tracing alive:

netstat -an 5 | findstr 1433

A few tricks are in place here:

1. Netstat with interval. This will keep the trace alive.

2. piped command, which in this case the second command “findstr” is used to search result of the previous command.

 

Of course you can also do something like this, to have 2 search “AND” criteria:

netstat -an 5 | findstr 135 | findstr /L /I listen

or even use a different windows command for the first part. It’s easy and flexible especially if you can’t bring in any applications into production servers.

Filed under: , ,