I am working on a VBS script to help troubleshoot an intermittent network / internet problem, and I was hoping to get some ideas from programmers who may have done something similar.
I don't even have any specific details on the intermittent problem that I am writing this for, but I decided that I would just make it generic as I will probably be able to use it in the future. All I know about the current issue is that she keeps having intermittent problems connecting to the internet, and that she is using a wireless network card. My code so far is basically: check for ICMP echo reply from known IP addresses from close to far, check DNS by pinging hostname, check wireless signal strength. It basically goes like this so far:
Ping local machine
Ping other computer on LAN
Ping gateway / router
Ping DNS server
Ping remote IP
Ping remote hostname
Check wireless signal strength (via WMI)
Log anything that fails, and loop every 30 seconds
I'm sure that there are a lot more things that could be checked, but I'm not sure what or where to look. If anybody has any ideas and / or code samples of what to check or how to check it, please let me know.