-
Identifying and configuring network ports using Python, LLDP/CDP and the Meraki API
Recently, I faced a challenge when replacing half of the network switches at my school. I inherited a network where the port configuration wasn’t well documented. One way I have historically dealt with this is by plugging a networking test tool into a port and using LLDP to discover which switch port the network jack…
-
Meraki API
So Cisco/Meraki has some pretty good documentation at using the Meraki API with Python. Short version is use pip to install Meraki (pip install meraki) and then in your shell set an environmental variable called MERAKI_DASHBOARD_API_KEY to your Meraki API key (export MERAKI_DASHBOARD_API_KEY=xxxxxxx) which can be enabled and found (see https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API). Below is a little…