Meraki - Find MAC
This script takes a MAC address as input, and returns where it's connected and blink the LED of the device.
Requirements
- Python 3.6+
- Administrator access to Meraki Dashboard
Instructions
-
Enable API access in your Meraki organization: Meraki Dashboard -> Organization -> Settings -> Dashboard API access
-
Generate your API key: Meraki Dashboard -> My profile -> API access
-
Get Meraki Org ID (You must be logged in to Meraki Dashboard first): https://api.meraki.com/api/v1/organizations
-
Install needed python packages
pip install -r requirements.txt
- Run script with the required arguments (MAC address format is not case sensitive, and support notation with both ":", "-" and nothing between octets)
python find_mac.py <MERAKI_KEY> <MERAKI_ORG_ID> <MAC_ADDRESS>
- Run around and see if you find the blinking LEDs :)
Example
Use Case
Find MAC in a Meraki Organization and blink device leds it's connected to
=====================================
Find MAC
When you quickly need to find where a specific device is connected to your network.
It shall take a MAC address, find it in a Meraki Organization, show how and where it's conneced, and blink the leds of the device it's connected to.
## White Paper
None
## Related Sandbox
None
## Links to DevNet Learning Labs
None
## Solutions on Ecosystem Exchange
None