Automation with APIs

Setting up a Python environment using ATOM

There are many tools you can use to code in Python.  I found ATOM to be very straightforward and this youtube video to be very helpful setting things up on my Mac.  It will take about a 1/2 hour, but it is time well spent if you want to start working with the sample code...

Setting up 2 factor auth and getting an APP key for gmail

This video will walk you through the steps to enable a gmail account to use and APP password instead of your regular password.  This will be needed if you want to create your own notifications with he Mist API and send e-mail from a python script.  It is meant to walk you through the process...

Using ATOM to write a simple script

I’ve used my postman knowledge to learn how to work with the Mist API.  Now I’ve taken some basic Python knowledge to print out the WLANs in my home organization.  This template can be used to print out administrators, clients, AP’s or anything you want! And I ran the script on my MAC. This is...

Make sure you test in a safe place

Up to now we have been doing GET operations.  Now we are going to start changing things with PUT operations and you will make mistakes as you learn.  You might want to create another Mist Org for your testing.  In this case I was changing Guest Portal and I made mistake. So when I went...

Change the Guest Portal password and email administrator

    To run this module you need to watch this video to setup your gmail account with 2 factor authentication (required.) This script will list your WLANs, generate a new random password, PUT the password into your guest portal and send the administrator and email with the new password.  This was written as generic...

Fun Comparing RSSI example (Mac)

I wrote a simple script to get the current RSSI from my Macbook Pro and using the Mist API to get the RSSI associated with my MAC address and run continuously.  You will need to ^c to break out of the script.  Keep in mind the Mist AP reports its stats every 60 seconds or...

Fun Comparing RSSI example (Windows)

I wrote a simple script to get the current Signal Quality percentage (not RSSI) from a Windows 10 laptop and using the Mist API to get the RSSI associated with my MAC address and run continuously. You will need to ^c to break out of the script. Keep in mind the Mist AP reports its...

SLE API Documentation

Monitoring the Mist Service Level Experience (SLE) API Documentation: Many endpoints used on the Mist WiFi Service Levels dashboard can be found in the API docs: https://api.mist.com/api/v1/docs/Site#insights (requires valid login) Those endpoints which may not be found in the API docs are noted below. Metrics/Classifiers: Mist SLEs support metrics and classifiers. Metrics track whether the...