troubleshooting Question

Script to restart server if pinging gateway fails.

Avatar of craylord
craylord asked on
Microsoft DOSWindows BatchMicrosoft Server OS
6 Comments1 Solution2411 ViewsLast Modified:
I'm looking for a script that will run in the background that will check to see if the gateway is pingable. If not, it sends a reboot command. shutdown /f

This is for a Windows 2003 server that is continously dropping its network connections due to an issue with an application. This should be a windows batch file. I don't have the time to mess with another language. Something simple enough where I can test by unplugging the network cable and see the process in action. Thank you!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros