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 hosts. All you need to do is copy and save the file as filename.bat and run it.
@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 **********************************************

No comments: