I need to monitor if a Windows client has a active connection to a specific service (tcp port) on a remote server and if not I want to use the Dude to restart a service on that client.
Does anybody have a input regarding how to do that.
Will return us similar output:
TCP 192.168.1.2:34766 192.168.1.1:443 ESTABLISHED 2176
Where last number is process PID.
3. Will verify if this PID is our application: