You would first need a database of mac addresses by manufacturer, then look it up in that database. By "database" I mean any stored information (this could be a flat file in text just as easily as an SQL query.)
Hi all,
How i can query the mac addresses on a url with bash script..
Example output:
.#./say_mac -m 00:30:a3:11:22:34
Compaq Computer Corporation
You would first need a database of mac addresses by manufacturer, then look it up in that database. By "database" I mean any stored information (this could be a flat file in text just as easily as an SQL query.)
Thx..
Theres a database from IEEE..
I solve problem, script is:
#!/bin/bash
a='-scan'
if [ "$1" = $a ]
then
echo 'looking up system arp tables..'
echo 'finding mac addresses'
curl -s http://standards.ieee.org/regauth/oui/oui.txt | grep ""
else
curl -s http://standards.ieee.org/regauth/oui/oui.txt | grep "$1"
fi
byez
Bookmarks