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

Calling operational RPCs and setting timeouts

In this recipe, we’ll learn how to make operational RPC calls to JUNOS through the XML RPC API using the PyEZ framework, and we’ll use that knowledge to build up the beginning of a software tool that could be used as an ISP looking glass.

A looking glass is a read-only view onto an ISP’s routers in order to allow customers and peers alike an ability to perform a self-serve troubleshoot activity by querying the provider’s routers to understand the routing of traffic to specific destinations.

We’ll also tweak PyEZ’s default settings to make it more patient for RPCs that might issue lots of output, taking significant time, such as when dealing with large configuration files.

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