E
E
Egorynsky2019-01-14 12:17:03
Ping
Egorynsky, 2019-01-14 12:17:03

How to ping multiple ip addresses?

The fact is that I have a lot of "SetMasters" that contain a huge number of ip-addresses, as I mean, not all of them work. So how do I ping all of them through a batch file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Tsvetkov, 2019-01-14
@theMANTIS

FOR /F "tokens=*" %%a IN (pinghost.txt) DO ping %%a
where pinghost.txt is a list of ip addresses.

S
Saboteur, 2019-01-14
@saboteur_kiev

what's the problem with pinging them all?
write
ping host1
ping host2
ping host3
or specify what exactly you want to get from ping, how you store the list of addresses.
At least show an example of the current batch file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question