David Sankovsky
asked on
Proactive Monitoring using PowerShell Script
Hi Guys,
I have a certain application that runs on port 3000.
I'm looking for a way to make a powershell script that I can later turn into a service that will do the following:
It will telnet locahist on port 3000,
If it's open, the script will rest for 3 minutes, otherwise it will call a batch file that will restart the application.
I know how to make the script into the service I'm not sure how to catch the output of the telnet... is it at all possible?
I have a certain application that runs on port 3000.
I'm looking for a way to make a powershell script that I can later turn into a service that will do the following:
It will telnet locahist on port 3000,
If it's open, the script will rest for 3 minutes, otherwise it will call a batch file that will restart the application.
I know how to make the script into the service I'm not sure how to catch the output of the telnet... is it at all possible?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great Script.
Works like a charm
Works like a charm
ASKER
Funnily enough we both made the very same thing...
Open in new window
Thanks for the help anyway :)