I need to access remote machines to get the data that derives from issuing the netstat -anbo command. In particular, I need Protocol (TCP or UDP), the local address and port, the foreign address and port if applicable, the state (listening, established, time_wait, etc.), and the PID. I also need to know which apps are running on which connections.
I considered working with remote shell commands first, but even if I got that working perfectly, the Win2000 boxes don't support the b or o switches.
I've wandered around in the WMI documentation for some time now, and find that I can establish connections and get various information. What I haven't been able to do is find classes which will show the information I'm looking for.
So. Here's where I've been doing most of my looking: Are there other places to look? Does anyone know what classes I need to query to get the info I'm looking for? Can I even use WMI to get this info?
Thanks in advance for helping.
Bob
I considered working with remote shell commands first, but even if I got that working perfectly, the Win2000 boxes don't support the b or o switches.
I've wandered around in the WMI documentation for some time now, and find that I can establish connections and get various information. What I haven't been able to do is find classes which will show the information I'm looking for.
So. Here's where I've been doing most of my looking: Are there other places to look? Does anyone know what classes I need to query to get the info I'm looking for? Can I even use WMI to get this info?
Thanks in advance for helping.
Bob