Retrieve mac address from all machines on an ip range or in a domain, and produce something like a csv file or a text file with them in ?
any ideas?
without having to go to each machine would be great as i will need to use this tool on multiple networks
Thanks in advance
Use the DHCP table on the DHCP server.
Right click on the scope lease folder and export, export as a CSV, sorted. Easy.
Tom
If you use DHCP just export the leases list to a csv.

nmap if good for this sort of thing
http://insecure.org/nmap/
Code:sudo nmap 192.168.1.0/24

There's also a command-line app on Windows servers to export the DHCP list if you need to run it as part of a script.

Or you could make use of a program called SoftPerfect Network Scanner. I find it a nice useful tool.
The DHCP lease export only covers dynamicaly addressed machines. In most cases e.g that will be enough but if you need information for static address then you may have to go down the nmap route as above.
Alternatively you could ping and arp to the same info.
You could probably use a WMI script to retreive the MAC address to. Make it scan all the addresses on your subnet or something. Assuming all your servers and clients are Windows based of course.
Also if the machine is running SNMP (which is true here for anything using a static IP, Print servers, W2k3 & Linux servers, switches) you can grab the MAC address from that.
Secondly, you can get this information passively with the correct monitoring software. For example there's a tool called 'arpwatch' on Linux that will passively monitor the network and work out IP:MAC address pairs based on ARP traffic.
http://www.angryziber.com/ipscan/
Will do what you want too.
Thanks guys i will give some of your suggestions a try later

OCS NG will also list mac address of all discovered computers.
Ben
LanView does this to use the WOL feature - not to a csv but it's handy if the reason you want MACs is for WOL!
There are currently 1 users browsing this thread. (0 members and 1 guests)