Archive Pages Design$type=blogging

Ping Multiple Servers At Once With Batch File.

A common tool that network and system admins make use of is the “ Ping ” command which is a very simple and effective way to verify a machin...

A common tool that network and system admins make use of is the “Ping” command which is a very simple and effective way to verify a machine is available on the network (firewall rules depending of course). So if you find yourself having to ping multiple machines at once, a very useful tool is the batch files, which will not only ping all the ip addresses but also give you ping results in text file format with just single click.

A batch file is a text file containing a series of commands intended to be executed by the command interpreter. When a batch file is run, the shell program (usually COMMAND.COM  or cmd.exe) reads the file and executes its commands, normally line-by-line. Batch files are useful for running a sequence of executables automatically and are often used by system administrators to automate tedious processes.

Steps to create batch file::

1. Open up Notepad, type in the following commands (Example)


@Echo off
ping 192.168.1.1 > "%userprofile%\desktop\mypings.txt"

ping www.google.com >> "%userprofile%\desktop\mypings.txt"

ping 192.168.1.222 >> "%userprofile%\desktop\mypings.txt"

Remember::  > will run the command and create a file with ping results and >> will append or add next ip address ping results to the created file . So whenever you create batch file first command should always have single > and subsequent  commands should have  >>.

2.Now save this file with Filename ping.bat or whatever you want and Change  Save as type to All files.


3.Run the ping.bat and you will get mypings.txt on your desktop.

If you want to place results text file someplace else, Say on C: drive just type c:\mypings.txt after >.
 Example::
ping 192.168.1.1 > c:\mypings.txt

ping www.google.com >>c:\mypings.txt

Play around with netstat , ipconfig and other commands by creating batch files in the similar manner.., just change the ping command to the command of your choice in the above example.

happy learning :)

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: Ping Multiple Servers At Once With Batch File.
Ping Multiple Servers At Once With Batch File.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwqRAX5KsnyoArqqyXC04FFL7RzVcvNvY49PuZfa9EUsijSFakZUyRglANDt0mFFaT4I1Owie_A_RovXUoyrW7GLnKQqE1DdbvcuLgaKOd3ZlLN9V0nn18jFsx73eDn4_4aPcQRTLNde0/s640/ping.JPG
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwqRAX5KsnyoArqqyXC04FFL7RzVcvNvY49PuZfa9EUsijSFakZUyRglANDt0mFFaT4I1Owie_A_RovXUoyrW7GLnKQqE1DdbvcuLgaKOd3ZlLN9V0nn18jFsx73eDn4_4aPcQRTLNde0/s72-c/ping.JPG
virtualization cloud computing security privacy data blatform
http://cloud-virtualization3.blogspot.com/2010/04/ping-multiple-servers-at-once-with.html
http://cloud-virtualization3.blogspot.com/
http://cloud-virtualization3.blogspot.com/
http://cloud-virtualization3.blogspot.com/2010/04/ping-multiple-servers-at-once-with.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