cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
148
Views
0
Helpful
2
Replies

Python script: Channel utilization monitoring

Hello colleagues,

I was recently looking for a way to monitor the channel utilization of the access points (APs) associated with a WLC. Since the only solution I found was DNAC, and none of my clients have it, I decided to take the more challenging route and create a Python script to help me monitor how congested the APs are every minute (or at least that's the idea).

You see, while I know a little Python, I'm not an expert, so I used a GPT chat to get the script. My goal was to solve the problem of monitoring AP congestion through channel utilization, and I think I succeeded.

The script is simple and lacks many improvements, but it has worked very well for me, at least for obtaining the following data:
- Peak office hours
- APs with the highest congestion
- Channel utilization when a user performs a large download
- Congestion in specific areas.

I've attached a video demonstrating how it works so you can try it out. Feel free to use it, and if you can improve it, I'd love to see your contributions.

 

(view in My Videos)

 

Requirements to run it:
- Curiosity
- A machine with Python installed
- The Netmiko library (pip install netmiko)

Values ​​that need to be changed in the script:

IP_WLC = "x.x.x.x"
USERNAME = "user"
PASSWORD = "pass"

For some reason I can't attach the .py file, but I'm leaving it as a .txt file; you just need to change the extension, the parameters, and run it.

I hope it's useful and helps you with your monitoring or Tshoot.

 

2 Replies 2

Mark Elsen
Hall of Fame
Hall of Fame

 

  - @mauricio-santana                 You may also find outputs from : https://www.cisco.com/c/en/us/support/docs/wireless/catalyst-9800-series-wireless-controllers/217738-monitor-catalyst-9800-kpis-key-performa.html#toc-hId--940480618
                                                    useful

  M.



-- Let everything happen to you  
       Beauty and terror
      Just keep going    
       No feeling is final
Reiner Maria Rilke (1899)

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

My only suggestion is to avoid storing username and password information within your code, that's insecure. Therefore, I suggest extracting this information from a database as a better solution.

I am not a Cisco employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Review Cisco Networking for a $25 gift card