Giter Club home page Giter Club logo

merakiping's Introduction

MerakiPing


Python script to verify Meraki wireless access points are online


Recently Cisco has been having issues with its cloud-based dashboard, Meraki. There have been cases where hundreds of wireless access points would appear as offline and alert our team. We would investigate the issue only to find that each AP was actually online and passing traffic, but there was an error in the dashboard. Investigating these occurrences every day became tedious, so I created this script. The script interfaces with the Meraki dashboard API and gets all the wireless access points in our network with the "offline" status and pings them to see if they are online.

There is an edge case where the DHCP server could hand out the AP's IP address to another device, leaving the LAN IP for the AP incorrect, resulting in a false-positive ping. This issue can be addressed by comparing the device's mac to the AP's mac to verify they are the same. This wasn't implemented since, in our environment, those APs would retain those IPs for 24 hours, and we would notice the issue within that time frame.

I created a batch file (not in this repo) that makes it easier to access for coworkers running a Windows OS. The batch file reaches out to a server that hosts the script and executes it.


Prerequisites

To run the script it is suggested to have at least:

  • Python 3.7 or higher

The script depends on the Meraki Dashboard API Python Library, which can be installed with pip.

Example: $ pip3 install --upgrade meraki

More information on this library can be found on the official GitHub here


Credentials

There are sections in the script for an API key and an organization ID. These can be created/found in the Meraki dashboard.


Example usage:

Dashboard

dashboard

Output

output

merakiping's People

Contributors

eugar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.