O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extracting graphs from OSPF

In this recipe, we'll write a Python PyEZ-based script, process-ospf.py, to connect to one of our JUNOS OS devices and extract the OSPF link-state database. Like the previous recipe looking at ISIS, OSPF is a link-state protocol that shares a lot of properties with ISIS. A single router usually holds the link-state database information for all other routers in the same area, and single-area backbone environments are common. We can use this information to help visualize our network.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required