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

Getting ready

In order to complete this recipe, you'll need:

  • Access to a development/management platform, with the following software available:
    • Node.js v4 or v6
  • Access to JUNOS OS devices that you want to monitor, all pre-configured with NETCONF-over-SSH services enabled and credentials available.

It's useful to understand the XML RPC message that we're going to process in this recipe, so let's take a look at it:

<rpc-reply xmlns:JUNOS="http://xml.juniper.net/JUNOS/14.1R6/JUNOS">    <ldp-traffic-statistics-information        xmlns="http://xml.juniper.net/JUNOS/14.1R6/JUNOS-routing">        <ldp-traffic-statistics>            <ldp-prefix>10.0.146.16/30</ldp-prefix>            <ldp-traffic-type>Transit</ldp-traffic-type> <ldp-traffic-statistics-packet-count>513949</ldp-traffic- ...

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