Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows 2000 server lookup query

Status
Not open for further replies.

Rain35215

IS-IT--Management
Oct 16, 2002
2
US
I need to know how to take an ip address (in DOS) and find the computer name and system info for that particular computer. I am running Windows 2000 server on eight computers with separate ones for DNS,DCHP, ans DC. If anyone can help, I would greatly appriciate it!

Rain35215
 
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top