Archive Pages Design$type=blogging

Batch file to test ip address range.

This is a cool batch script that I found to ping a range of IP addresses and report whether they respond to the ping. Simply copy and paste ...

This is a cool batch script that I found to ping a range of IP addresses and report whether they respond to the ping.

Simply copy and paste this code into a notepad file and save with the bat extension (remember to enclose the save as file name in quotes so that it doesnt add a txt extension.



@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! >> 192.168.1.%t%-up.txt
if %errorlevel%==1 echo Host %t% is DOWN! >> 192.168.1.%t%-down.txt
IF %t%==999 Exit
Goto start

The only modification required is to change the two ip ranges (192.168.1.) to the appropriate range you want to test, where ever the bat file is run from, it will create a text file for each ip address scanned and will indicate whether a response was returned with either -up or -down as the end part of the text files name

COMMENTS

الاسم

ASA CCNA Flashcards CCNA Interview Q\A CCNA Labs Cheat Sheets cisco certification Cisco IOS Ethernet Cabling Free Network Tools Ftp Links GNS3 Tutorials IPv6 - Introduction LAB 1 LAB 2 Linux Router Networking Online Videos Packet Tracer Posters Qemu Softwares subnet mask TestInside tips-tricks Ubuntu Video Tutorials Windows 7 Networking Youtube Vids
false
rtl
item
virtualization cloud computing security privacy data blatform: Batch file to test ip address range.
Batch file to test ip address range.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjNwV1YJiONfGMJOy1qz5JFTI1XiBbGOmNttda0qSmVleEWML11ftaaqrxaxQU2Bbn3NzWjcpvm97-UCVuly_F5OHK1zYpJTmjTbwH8y5lG2BOCGBrzHkO4TMR7t7_8VppNDhFxbq_Gq0/s400/range.JPG
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjNwV1YJiONfGMJOy1qz5JFTI1XiBbGOmNttda0qSmVleEWML11ftaaqrxaxQU2Bbn3NzWjcpvm97-UCVuly_F5OHK1zYpJTmjTbwH8y5lG2BOCGBrzHkO4TMR7t7_8VppNDhFxbq_Gq0/s72-c/range.JPG
virtualization cloud computing security privacy data blatform
http://cloud-virtualization3.blogspot.com/2010/04/batch-file-to-test-ip-address-range.html
http://cloud-virtualization3.blogspot.com/
http://cloud-virtualization3.blogspot.com/
http://cloud-virtualization3.blogspot.com/2010/04/batch-file-to-test-ip-address-range.html
true
4356106142092226719
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago