Meraki Automated Port Monitoring Prototype

The Prototype solution was built to demonstrate the "Art of Possible" around the following use-cases:

  1. Provide and "Easy-to-Use" Dashboard for first-level staff to configure Meraki Switchports.
  2. Enable an Organization-wide, Automated, Notification system to monitor Switchports that meet the defined criteria.

Contacts

  • Alex Hoecht
  • Jason Mah

Solution Components

  • Python3
  • SQLite Database
  • Flask Web-Application framework
  • Cisco UI Kit
  • Meraki Dashboard API
  • Cisco Webex API

Dependencies/Environment

Required Packages

  • Flask (pip install Flask)
  • Requests (pip install requests)
  • Click (pip install click)
  • Schedule (pip install schedule)
# Create a Virtual Environment
python3 -m venv Virtual_Environment

# Activate Virtual Environment
source Virtual_Environment/bin/activate # (MacOS)
Virtual_Environment/Scripts/activate # (Windows)

# Install Dependencies
pip install -r requirements.txt

Starting the Application

Once Dependencies are installed to Environment:

# Setup Flask application
export FLASK_APP=src # (MacOS)
set FLASK_APP=src # (Windows Command Prompt)
$env:FLASK_APP = "src" # (Windows PowerShell)

# Enable Development Features
export FLASK_ENV=development

# Start Application
flask run

Documentation

User Interface (Dashboard)

/src/static/img/ui.png

High-Level Diagram

/src/static/img/hld.png

Developer Resources

LICENSE

Provided under Cisco Sample Code License, for details see here

CODE_OF_CONDUCT

Our code of conduct is available here

CONTRIBUTING

See our contributing guidelines here

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use.
You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

View code on GitHub

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.