Monitoring MPLS LDP statistics
In this recipe, we'll use the Node.js framework that we created in the previous recipes in order to query the JUNOS XML API and extract MPLS LDP information about label-switched paths across the network. The MPLS label-switched path information is valuable to understand because it generally provides an insight into end-to-end traffic flows, in contrast with the per-link interface monitoring that we've already completed.
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...