Hi Experts,
I am novice to the batch scripting. I am looking to fullfill one of my requirement.
I have one host file which is having multiple host names and IP addresses. Below is the example of the input file.
127.0.0.1 Host1 Host2 Host3
127.0.0.2 Host4 Host5 Host6
I want to read each line and ping for first host(Host1), than Second host(Host2) and than third host(Host3).
While pinging each host name , I need to check the ping response IP for that host and match it back with the IP mentioned in the input file.
Can any give me any advice or whip something in a batch file or Power shell for me? Thanks in advance.