Pau Lo
asked on
IP Range Ping
Is there any simple way to ping upwards of 1000 IP addresses to see which reply and put it in a tidy format? Will pinging so many all at once cause serious performacne / confusion impacts to the network?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
The amount of traffic generated from a PING is minimal - nobody will generalle care for 1000 machines, even 10000 will probably be fine on a decent network. it may trip up on any decent intrusion detection system as a potential scan, but from inside and assuming your a member of IT or IS - nobody should care.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Hi,
You can do it with the following script. Just save it in a .BAT file and than run it. It will generate a output.txt
Offcourse you will need to specify the correct ip range you want to scan and the times it will run now set to 255.
@echo off
SET t=0
:start
SET /a t=t+1
ping -n 1 -l 1 192.168.1.%t% > nul
if %errorlevel%==0 echo Host %t% is UP! >> output.txt
if %errorlevel%==1 echo Host %t% is DOWN! >> output.txt
IF %t%==255 Exit
Goto start
You can do it with the following script. Just save it in a .BAT file and than run it. It will generate a output.txt
Offcourse you will need to specify the correct ip range you want to scan and the times it will run now set to 255.
@echo off
SET t=0
:start
SET /a t=t+1
ping -n 1 -l 1 192.168.1.%t% > nul
if %errorlevel%==0 echo Host %t% is UP! >> output.txt
if %errorlevel%==1 echo Host %t% is DOWN! >> output.txt
IF %t%==255 Exit
Goto start