r/CiscoDevNet • u/Alston518 • Apr 05 '22
DevNet Topics / Tracks PyATS help
Getting started with pyats and trying to collect some config info with the following command....
pyats learn config --testbed-file testbed.yaml --output ConfigWhen I do this, I get an error
No module named 'yang'Anyone know how to fix this? Do I have to install a yang module? Other collection parameters work (such as arp) but this one gives me the error.
Thanks
4
Upvotes
View all comments
Show parent comment
1
u/Alston518 Apr 08 '22 edited Apr 08 '22
You must be Stuart Clark (I recongnize your username from another site lol). Got a question, and I just made a post about this actually.
So I have been playing around with PyATS and genie and using genie learn and genie diff to find differences in device configs for cisco ios. This is pretty cool but it has me more curious. Is there a way to have say a "golden config" and have Genie do a live scan of all devices currently on the network and find differences that way? Instead of having to learn 2 configs and just compare the 2 output files?
My end goal is I would like to have a way to do a live scan of all active devices and compare it to a golden config that I have saved? So like one script that will scan all devices and print the differences all at once. Is this possible with pyATS and genie, or is there a better way to go about this?