Monitoring interface performance
In this recipe, we'll use the JUNOS OS NETCONF interface in order to extract real-time interface performance data and present it in a web interface. We'll write a server application that connects to the devices in our estate, issues a NETCONF remote procedure call to extract the data, and then shares this data amongst web-based clients. For convenience and simplicity, we'll avoid the task of storing the actual interface usage data and focus our application on real-time uses such as monitoring the state of interfaces while performing reconfiguration work. Consider it an extension to the command line interface, but in a visual form:

Figure 7.5 Interface monitoring system schematic
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 with credentials...