Showing posts with label Batch file. Show all posts
Showing posts with label Batch file. Show all posts

Tracert from Cmd prompt and save result in a notepad [Batch file]

Steps for Tracert an IP and save result in a notepad

- Open Notepad
-Type

TRACERT 8.8.4.4 >Tracert.txt 

-Save it as Sysnet.cmd in your desktop .
Instead of "8.8.4.4" you can use any IP address you want.
Instead of "Sysnet.cmd" you can use any Name.cmd you want.

Tracert to given IP will be initiated  when you click on the Sysnet icon on your desktop.Result of tracert will be saved to the notepad named Tracert.txt in the desktop which will be automatically created when you click on Sysnet icon.



Result in notepad


Read More...

How to ping multiple ip addresses from cmd prompt

If you are working as a  Network/System administrator you might come across situations to monitor network connectivity of multiple machines in your network at same time.Companies having large network may use Network Monitoring tools like PRTG Monitor .

As we all know, ping is one of the most useful network debugging tools used for verifying IP-level connectivity.Normally when we want to ping multiple IP addresses, we open command prompts and start pinging to each IP.


If the ping command gets a response, then the connection is good, and you can concentrate on other problems.If you are getting RTO's [Request time out] there is some connectivity problem in the network
If we have to monitor connectivity of multiple IP addresses we need to open each cmd prompt and need to ping all IPs.There are lot of free software which allow you to ping multiple IPs at same time.But many of the companies will not allow admins to install and use third party softwares to do that.In such cases we can use batch files to ping multiple IPs at same time.You can PING as many IPs with a single click.


How to make a Batch file to ping multiple IP addresses

- Open a notepad 
- Type

START "Google Primary DNS" ping 8.8.8.8 -t
START "Google Secondary DNS" ping 8.8.4.4 -t  

-Save it as Sysnet.cmd in your desktop .You can use as many IP address you want.All IP addresses are opened in seperate windows when you click on the Sysnet icon on your desktop

Instead of  "Google Primary DNS" you can use any Title you want.
Instead of "8.8.8.8" and "8.8.4.4" you can use any IP address you want.
Instead of "Sysnet.cmd" you can use any Name.cmd you want.


If you are interested in free software to ping multiple IPs at same time,You can try PingInfoView which is a small, very useful and free utility that allows you to easily ping multiple host names and IP addresses, and watch the result in one table.

Read More...