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- ...