Dot11 Guru

802.11, Cisco, ekahau automation, Python, scripting

Ekahau Automation, Optimising Workflow – Part 3

This is Part 3 of a how-to guide on Ekahau Automation, focusing on optimising project workflow through python scripts. This chapter specifically targets techniques to automate configuration of the infrastructure based on project file data.

For Part 1, 2, and more Ekahau / Python goodness,
visit the dedicated Ekahau Automation page

Part 3 of this series will focus on using the netmiko library to issue commands to a Cisco wireless LAN controller.

Netmiko SSH Library

Although we’re focusing on Cisco infrastructure, the method described here is applicable to any infrastructure supporting SSH. As of today, Netmiko is tested on a number of different platforms as illustrated below.

Netmiko example and supported platforms

Also illustrated in the image above, is a typical method of connecting to a Cisco Wireless LAN Controller and issuing a standard show command. Although the username and password here is hard coded (bad practice!), you can use libraries like argparser and getpass to prompt on execution of the script.

Argparser and Getpass in action

In this particular example, we will be taking the channel assignment of each access point, and configuring it statically.

The first steps are to extract the project file and pull the data from the relevant JSON files. Finally build a dictionary to contain the relevant values.

Step 1) Extract project file, read and gather data from the relevant JSON files.

Using another library called PANDAS, we will format the data into a table for visual validation before pushing the commands to the wireless infrastructure.

Display for validation in a table and prompt for approval.

Finally, once the approval is received we can execute the commands on the Wireless Infrastructure, or if you prefer, print a list of commands used to execute yourself.

Execute the changes on the infrastructure
or print the commands as text

Resources / Links

Ekahau / Cisco Static Channel Configuration

Ekahau Automation Guides

The Secret Step to Validation Surveys

MQTT 3.1.1 Application Flows

Share this:

Leave a Reply