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

Making raw CLI commands from PyEZ

In this recipe, we’ll use the PyEZ framework to execute an RPC on our JUNOS device that simply executes a raw command line string. Even though the unstructured, human-focused, command line text output is perilous to work with for automation applications, sometimes there are situations where you just need the output to a specific command.

We’ll look at ways that PyEZ can help with that.

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