oui

Look up MAC addresses for their vendor in the IEEE OUI database

oui

Look up MAC addresses for their vendor in the IEEE OUI database

Note: The module API changed to sync starting with 3.0.0

$ [sudo] npm install -g oui
$ oui 20:37:06
CISCO SYSTEMS, INC.
170 W. TASMAN DRIVE
M/S SJA-2
SAN JOSE CA 95134-1706
UNITED STATES

To update the local OUI database from the official IEEE source:

$ [sudo] oui --update
$ npm install --save oui
var oui = require("oui");
console.log(oui("203706"));
//=> CISCO SYSTEMS, INC. 
//=> 170 W. TASMAN DRIVE 
//=> M/S SJA-2 
//=> SAN JOSE CA 95134-1706 
//=> UNITED STATES 
  • input: The input string. Non-hexadecimal characters and characters after 6 matching characters are found are ignored.
  • options: An optional options object.

Returns either a string, or null if no matches are found. Throws if input is not a string.

  • cb: The callback function receives err (if any).

If true, only these formats of MACs are accepted:

  • 000000
  • 00:00:00
  • 00-00-00
  • 000000000000
  • 0000.0000.0000
  • 00:00:00:00:00:00
  • 00-00-00-00-00-00

A lookup will throw when an invalid format is supplied strict mode.

© 2014-2015 silverwind, distributed under BSD licence