@echo off for /L %%N IN (10,1,254) do ( echo 192.168.1.%%N nslookup 10.68.68.%%N ping 192.168.1.%%N echo ********************************************** )
Wednesday, December 5, 2012
Windows batch script for pinging and nslookup entire VLAN
Following batch file can ping and run nslookup on all the hosts in 192.168.1.10-192.168.1.254 hosts. All you need to do is copy and save the file as filename.bat and run it.
Labels:
How-to series,
Microsoft Windows
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment