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

Using XPath predicate expressions

In this recipe, we'll build on our previous op script, show-int.slax, and enhance its functionality so that it can limit the output based on characteristics of the interface. To illustrate the capabilities of XPath predicates, we'll filter some of the annoying internal interfaces that showed up in the output of the previous recipe.

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