Skip to content

Simple batch script for getting a MAC from a hostname (local lan)

Notifications You must be signed in to change notification settings

carlesreig/get-MAC-from-hostname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

get-MAC-from-hostname.bat

Author

Carles Reig, https://twitter.com/carlesreig, http://www.carlesreig.com

Windows batch script (cmd)

Simple windows batch script to get MAC phisical address from a hostname at local network. It can also get a MAC from an IP, but maybe you don't need this script to do so...

How it works?

  • Call this script, for example get-MAC-from-hostname.bat then type target hostname/IP.
  • You could also pass hostname when calling this script, like get-MAC-from-hostname.bat raspi, where "raspi" is target hostname.

What really does?

It simply does a ping to our hostname, then ask for arp table from that hostname/ip.

License

Released under GNU General Public License, version 2 (GPL-2.0).

About

Simple batch script for getting a MAC from a hostname (local lan)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published