Meraki - Find MAC

published

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

  1. Enable API access in your Meraki organization: Meraki Dashboard -> Organization -> Settings -> Dashboard API access

  2. Generate your API key: Meraki Dashboard -> My profile -> API access

  3. Get Meraki Org ID (You must be logged in to Meraki Dashboard first): https://api.meraki.com/api/v1/organizations

  4. Install needed python packages

pip install -r requirements.txt
  1. 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>
  1. Run around and see if you find the blinking LEDs :)

Example

Alt text

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
View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    Meraki
  • Programming Languages

    Python
  • License

    GNU General Public License v3.0

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.