batch file - CMD - Ping and traceroute from list of ips -
we have sporadic connection failures when webserver tries connect service on net. there problem trace failure php many reasons.
i'm web-programmer , not familiar command-line scripts. can following cmd-script:
-there list of ips separated newline in text file (ip_list.txt)
-take ip list , ping it, if fails on first attempt - traceroute it
-go next ip in file
i don't sure want test, here's pretty useful command test ping.
enter ping ip_address -l 10 -n 10
directly cmd, change ip_address ip address want. -l 10
- ping ip address 10 bytes of data
-n 10
- ping 10 times
ping /?
- more informations
each ip address (line line) in text file, use for /f %%a in (your_file.txt) ( //to )
. since i'm not sure want, that's can :)
Comments
Post a Comment