mac-lookup
A node module to fetch, parse, and lookup entries from the IEEE's OUI database. Adapted from node-ieee-oui-lookup.
Install
npm install mac-lookup
Usage
// Config is optionalvar config = sql: './oui.db' txt: './oui.txt' url: 'http://linuxnet.ca/ieee/oui.txt' var mac = config; // if defining a custom config, make sure to rebuild at least once to generate sqlite3 dbmac; // ...
To lookup a MAC prefix:
mac;
You can also look up the full mac address with or without full dash, dot, or colon notation:
mac;)
If you think the internal DB is outdated, you can rebuild it from the latest file with:
mac;
Iterate thru the entire db
{ console; } mac;
Additional Notes
our csv file for ouis are obtained from here
wget https://standards.ieee.org/develop/regauth/oui/oui.csv