02-24-2025 01:53 AM
Hi,
Is it possible to use PyATS to test meraki envirnoments, I can find plenty of examples for cisco nx-os , ios etc but nothing specific for meraki
Solved! Go to Solution.
02-24-2025 07:05 AM
PyATS is best suited for CLI based devices & configurations while Meraki devices are cloud managed and the device configuration is based on a data model you can interact with through the API as you can see in the scripts linked above.
02-24-2025 02:21 AM
@c14n You sure can https://developer.cisco.com/meraki/build/automation-scripts-with-python/
02-24-2025 04:27 AM
thanks, I use some of those scripts already, maybe what's confusing me is the fact there is no meraki specific genie libs,
Can I theoretically use pyATS to test any vendor as long as it supports python commands to do tasks?
02-24-2025 06:59 AM
Yah and i think the reason for this (happy to wrong here too) the genie libraries are primarily built for vendors with traditional network operating systems (like Cisco IOS, IOS-XE, NX-OS, etc.) that have well-defined command-line interfaces (CLIs) as genie excels at parsing CLI output into structured data. Meraki is a API first approach (yay!) so your code isnt interacting with a CLI, its primarily communicating with the Meraki platform through REST APIs. You you could theoretically try to build a genie library that parses API responses, but in my exp it is generally not the most efficient or idiomatic way to interact with API-driven devices.
Yes you are right, you can use pyats to test any network device or vendor as long as the device supports Python-based interaction or automation, keep in mind there are some considerations and limitations. If the device/s can be accessed via SSH or Telnet and responds to standard CLI commands, pyats can likely interact with it.
Hope this helps.
02-24-2025 07:05 AM
PyATS is best suited for CLI based devices & configurations while Meraki devices are cloud managed and the device configuration is based on a data model you can interact with through the API as you can see in the scripts linked above.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide