I assume you want to do something with a batch file. If so try the following after you modify the IP address to meet your needs. (you can run the file like this ip.bat>>c:\ip.txt if you want to record the data to a text file that is easy to import.
I have inserted the body of 2 samples below
rem batch using nbtstat
rem this will collect the following information:
rem computer name (only for microsoft systems)
rem name of user logged on at time (maybe)
rem name of computers workgroup or domain
rem MAC address of computer
nbtstat -A 10.1.1.1
nbtstat -A 10.1.1.2
nbtstat -A 10.1.1.3
nbtstat -A 10.1.1.4
nbtstat -A 10.1.1.5
rem this file uses ping and is faster
rem this file will collec the following information:
rem name of host (maybe) works on ms and non ms systems
rem ping latency stats
ping -a 10.1.1.1
ping -a 10.1.1.2
ping -a 10.1.1.3
ping -a 10.1.1.4
ping -a 10.1.1.5
As a note, if you want to scan large blocks of address, you can create batch files with 100s or 1000s or addresses using excel. Excel makes it very quick to create mass files, and you can output the results to a text file as I showed above and then use tools like monarch or PERL to extract the results into a csv for use in a spreadsheet or database, etc.
let me know if that helps,
Jay Mosser
jaym@optymgroup.com