Discussion in 'Server Operation' started by muzica, Mar 7, 2007.
I have a IP Address of a remote server on my network.
How can i find the MAC address.
Log in to the server and run
That command will show you the MAC address (I think it calls it HWADDR or something like that).
Thanks, but I don’t want to log on to 68 servers. Is there away to innovatory them from a command line?
I'm not sure if the nmblookup can be of help. Run
Maybe it can detect MAC addresses.
I use nmap for that type of task.
the following command will scan your entire subnet and provide just the info you need;
nmap -sP 192.168.0.0/24
Replace the 192.x.x.x with whatever you subnet is, also if you're not using one of the standard subnet masks you'll need to calculate and apply a different subnet # at the end (24).
Since you have a bunch of machines I'd suggest routing the info to a file like so;
nmap -sP 192.168.0.0/24 > MyMacs.txt
Then you can copy that text file to whatever machine your doing work on. I use the heck out of this command when setting up Static DHCP servers.
Separate names with a comma.