I need to create a .bat file to test connectivity to my servers, I need to test the following on XP clients:
I have an idea about how how to check dns resolution and pings. Initiate a in a bat file and search the return for my IP. If found DNS is allright. Initiate another ping to my IP if there is a reply ping is allright. As for open ports I need to check if the client PC can connect to an open port 5222 on my server. Normally I would ask the user to open a command shell and execute: telnet myip 5222 if the connection is refused it means that they can not access my port there might be some other way.
In short I can not tell the user to execute those commands each time. I need to create a batch file to do the checks and return something like.
DNS : Yes
Port : Opened
Any guidance or help is welcome