The very first time I heard about YANG I immediately thought about YIN and YANG ☯, what this tech stuff is about and who is responsible for this naming? Surprise, it does not have a connection to YIN and YANG ☯, even if we can translate YANG into an alternative XML-based syntax called YIN…or maybe I did not found a good explanation 😎 Therefore, before we start, the abbreviation means Yet Another Next Generation.
If you have a problem with your Juniper device, you have to inspect your device’s data – this means in most cases that you should have a look at your RSI (request support information) and log files within the /var/log folder. Especially, if you need to open a case with JTAC you have to provide RSI and the entire /var/log folder of the particular Juniper-device for getting started with the analysis of the problem. Within this blog post, I will show you how to get this information via Junos PyEZ.
Yesterday I saw a question in the official Junos PyEZ Google Group if it is possible to automate the synchronization of prefix list and policy statement configurations on several routers. Of course, you can do this with PyEZ 🙂 So I decided to answer the question with a blog article and a basic script. In this blog article, I will only focus on syncing prefix lists but handling other configuration parts is quite the same.
In my last blog post, I have given a short introduction into Junos PyEZ. Now I will show you how to check BGP using Table/View and how you can create a Table/View from scratch. You can find a basic example to check BGP routes via Junos PyEZ Table/View by Rick Sherman in the official Google Group. I will use this example as a starting point.
I am fascinated about Python for networking because it is easy to get your automation stuff done and it’s fun working with it because you can quickly expand your projects to any requirements. Like config generation or data processing. But if you then also can communicate with devices through Junos PyEZ it is incredible because this gives you the possibility to do even more.