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

There's more...

Using the JUNOS OS | xml rpc modifier is also particularly useful for understanding how to present complicated arguments. In this case, for example, it's possible to see how we filter the output of the show route command (which would ordinarily be large and unwieldy) for a specific destination and table:

      adamc@router> show route table inet.0 1.0.0.1/32 | display xml               rpc       <rpc-reply  xmlns:JUNOS=" http://xml.juniper.net/         JUNOS/15.1F6/JUNOS">      <rpc>      <get-route-information>      <destination>1.0.0.1/32</destination>      <table>inet.0</table>      </get-route-information>      </rpc>      <cli>      <banner></banner>      </cli>      </rpc-reply>

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