Nautobot ChatOps with Cisco Meraki

Network to Code is releasing a new Nautobot app—a plugin to interact with Cisco Meraki using the existing Nautobot ChatOps framework! This app comes with prepackaged commands to gather data about your Meraki environment via chat commands. The Nautobot ChatOps app lowers the barrier of entry by providing interactions with chat platforms of Mattermost, Microsoft Teams, Slack, and Webex Teams. The amount of code needed to generate ChatOps commands is low, and the Meraki ChatOps app can be expanded to include new commands to fit any number of use cases.

The Nautobot ChatOps Meraki app extends the capabilities of the Nautobot ChatOps app to include a new chat command. This is done by registering to the Python entry point in Nautobot plugin ChatOps that provides functionality to the code written to interact with Meraki.

Visit Nautobot Chatops with Meraki Repository for more details.

This app introduces the following subcommands to the meraki command:

  • get-organizations
  • get-admins
  • get-devices
  • get-networks
  • get-switchports
  • get-switchports-status
  • get-firewall-performance
  • get-wlan-ssids Query Meraki for all SSIDs for a given Network.
  • get-camera-recent Query Meraki Recent Camera Analytics.
  • get-clients Query Meraki for List of Clients.
  • get-neighbors Query Meraki for List of LLDP or CDP Neighbors.
  • configure-basic-access-port Configure an access port with description, VLAN, and state.
  • cycle-port Cycles a port on a given switch.

Get Organizations

Gather all the Meraki Organizations based on the API Key used during setup.

Meraki Get Organizations

Get Admins

Based on an Organization Name, return the Meraki Admins.

Get Devices

Gathers devices from Meraki. Provides a device type option in order to limit scope.

Get Networks

Gathers names of networks from Meraki.

Meraki Get Networks

Get Switchports

Gathers switch ports configuration details from an MS(Meraki Switch Model) switch device.

Get Switchports Status

Gathers switch ports operating status from an MS(Meraki Switch Model) switch device.

Get Firewall Performance

Query Meraki with a firewall to device performance. This provides an integer value.

Get WLAN SSIDS

Query Meraki for all SSIDs for a given Network.

Get Camera Recent

Query Meraki Recent Camera Analytics.

Get Clients

Query Meraki for List of Clients.

Get Neighbors

Query Meraki for List of LLDP or CDP Neighbors based on a device.

Configure Basic Access Port

Configure an access port with description, VLAN, and state.

Meraki Configure Port 1
Meraki Configure Port 2

Cycle Port

Cycles a port on a given switch. Equivalent to a shutdown, no shutdown procedure.

Extending the App

Cisco Meraki is a cloud-managed infrastructure manager that includes multiple different products. Since Meraki can manage switches, security devices, cameras, and wireless, the initial plugin aims to provide some value in each of these product lines. Extending this plugin to include more commands is simple, and I encourage contributions back into this project.


Conclusion

This is just the start of what is possible in extending the Nautobot ChatOps ecosystem. Whether you want to write your own, or use one of the additional plugins that has been created by Network to Code, the ecosystem for ChatOps is going to continue to grow! Keep an eye out for additional ChatOps plugins to be announced here!

-Jeff



ntc img
ntc img

Contact Us to Learn More

Share details about yourself & someone from our team will reach out to you ASAP!

Thanks for submitting the form.

Author