Retrieving channel usage for your Meraki access point
Are your Wi-Fi points using their channels properly? And what is the channel utilization over each radio? We can use a script to retrieve the total utilization for each Wi-Fi point in a Meraki network and print this information out for a user to look at. Meraki allows us to specify the time frame, so we are going to use query parameters to specify a suitable one.
Getting ready
Open your code editor and start by creating a file called utilization.py
. Next, navigate your terminal to the same directory that you just created the utilization.py
file in.
In your terminal, you'll also have to set an environment variable called MERAKI_DASHBOARD_API_KEY
, whose value is the API key for your Meraki organization. Please refer to the Authenticating web requests recipe for an introduction on how to set environment variables on different operating systems.
How to do it…
Follow these steps to authenticate your request...