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:
- Obtain an API key from [https://macaddress.io/api].
- Add an environment variable named MACADDRESS_IO_API_KEY with the API key you obtained.
- Build the container with the command:
docker build -t mac_lookup .
- Ensure the
mac_lookup
command is executable withchmod +x mac_lookup
- 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