Created
March 17, 2014 00:19
-
-
Save mchirico/9591856 to your computer and use it in GitHub Desktop.
Getting MAC address to tell you the manufacture of NIC card.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1. | |
# Download the ieee list of Organizationally Unique Identifier (OUI) | |
# for all MAC addresses. | |
# | |
# wget http://standards.ieee.org/develop/regauth/oui/oui.txt | |
# Step 2. | |
# Run the following script to see the hardware on your system. | |
arp -a|awk '{print $4}'|tr '[:lower:]' '[:upper:]'|awk 'BEGIN{FS=":"}{cmd=sprintf("grep \"%s-%s-%s\" oui.txt",$1,$2,$3); cmd|getline D; close(cmd); print D}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment