Setup + Installation

1. Download repository and move to desired directory
2. Run `pip install -r requirements.txt` to install any potentially missing packages
3. Go to the Meraki Dashboard and generate an API key for yourself. If you need assistance on obtaining an API Key, please visit https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API
4. Paste this value into the provided credentials.json file (if desired)
5. Run script. For instructions on running the script, read below

Instructions

The script obtains its credentials in two ways:

  • Imported from a JSON file using the --credentials argument
  • Specifically designated using the --apiKey argument

To run the script, enter python[3] main.py [arguments] and the script will begin, requiring no further input

Description

The script will output a dict that will list all the switches in your organisations, with each one having a "ports" entry which will have an "inUse" key against it, which will be true if a device is detected to be plugged in to it

View code on GitHub
  • Owner

  • Contributors

    +2Github contributors
  • Categories

  • Products

    Meraki
  • Programming Languages

    Python
  • License

    MIT License

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.