gve-sw / gve_devnet_meraki_catalyst_client_auditor

prototype web app that facilitates network migrations from Cisco Catalyst switches to Cisco Meraki solutions and focuses on auditing and verifying the presence of network clients post-migration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gve_devnet_meraki_catalyst_client_auditor

prototype web app that facilitates network migrations from Cisco Catalyst switches to Cisco Meraki solutions and focuses on auditing and verifying the presence of network clients post-migration.

Contacts

  • Jorge Banegas

Solution Components

  • IOS-XE
  • Meraki

Prerequisites

Meraki API Keys

In order to use the Meraki API, you need to enable the API for your organization first. After enabling API access, you can generate an API key. Follow these instructions to enable API access and generate an API key:

  1. Login to the Meraki dashboard
  2. In the left-hand menu, navigate to Organization > Settings > Dashboard API access
  3. Click on Enable access to the Cisco Meraki Dashboard API
  4. Go to My Profile > API access
  5. Under API access, click on Generate API key
  6. Save the API key in a safe place. The API key will only be shown once for security purposes, so it is very important to take note of the key then. In case you lose the key, then you have to revoke the key and a generate a new key. Moreover, there is a limit of only two API keys per profile.

For more information on how to generate an API key, please click here.

Note: You can add your account as Full Organization Admin to your organizations by following the instructions here.

Installation/Configuration

  1. Clone this repository with git clone [repository name]. To find the repository name, click the green Code button above the repository files. Then, the dropdown menu will show the https domain name. Click the copy button to the right of the domain name to get the value to replace [repository name] placeholder.
  2. Rename the .env_sample file to .env.
  3. Add Meraki API key to environment variable in .env:
# Meraki Section
MERAKI_API_KEY=""
MERAKI_ORG_ID=""
SSH_USERNAME=""
SSH_PASSWORD=""
  1. Set up a Python virtual environment. Make sure Python 3 is installed in your environment, and if not, you may download Python here. Once Python 3 is installed in your environment, you can activate the virtual environment with the instructions found here.
  2. Install the requirements with pip3 install -r requirements.txt

Meraki Organization ID

Run the script get_meraki_orgs.py after entering MERAKI_API_KEY and renaming the .env_sample to .env to find your ID. A json file will generate will the organization IDs the key is tied to.

Usage

To run the program (from the top-level directory), use the following commands to run with python directly:

$ python3 app/app.py

Screenshots

Home Page

/IMAGES/homepage.png

Device Page

/IMAGES/devicepage.png

Result Page /IMAGES/resultpage.png

/IMAGES/0image.png

LICENSE

Provided under Cisco Sample Code License, for details see LICENSE

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.

About

prototype web app that facilitates network migrations from Cisco Catalyst switches to Cisco Meraki solutions and focuses on auditing and verifying the presence of network clients post-migration.

License:Other


Languages

Language:CSS 86.8%Language:JavaScript 5.6%Language:Python 4.2%Language:HTML 3.4%Language:Dockerfile 0.0%