Skip to content

Dockerized CLI command to look up vendor information for a MAC address using macaddress.io API

Notifications You must be signed in to change notification settings

pgiralt/mac_lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b8e8571 · Apr 29, 2020

History

3 Commits
Apr 29, 2020
Apr 29, 2020
Apr 29, 2020
Apr 29, 2020

Repository files navigation

mac_lookup

Dockerized CLI script to pull MAC Address vendor information from macaddress.io.

You must have Docker installed on the machine where you run this tool if you are going to use the containerized approach.

To install, clone this repository to your local machine, then follow these instructions to run:

  1. Obtain an API key from [https://macaddress.io/api].
  2. Add an environment variable named MACADDRESS_IO_API_KEY with the API key you obtained.
  3. Build the container with the command: docker build -t mac_lookup .
  4. Ensure the mac_lookup command is executable with chmod +x mac_lookup
  5. Optionally move mac_lookup to path directory such as /usr/local/bin or /usr/bin

Usage:

mac_lookup <mac_address>

<mac_address> can be formatted in any of these formats:

  • XX:XX:XX:XX:XX:XX
  • XX-XX-XX-XX-XX-XX
  • XXXX.XXXX.XXXX

About

Dockerized CLI command to look up vendor information for a MAC address using macaddress.io API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published