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

Web client application

Again we'll take the web client framework from one of the previous recipes, and modify that to our needs. What we want to achieve is a horizontal bar chart that lists the MPLS destinations downwards, illustrating the traffic level on the x-axis.

  1. Copy the system.html example from the Monitoring system health recipe, and rename it to mpls.html.
  2. First of all, change the title of the HTML document to something more appropriate:
   <!DOCTYPE HTML>   <html>   <head>     <title>JUNOS MPLS Traffic Monitor</title>
  1. Then, include the necessary RGraph Javascript source code to support horizontal bar graphs:
    <script src="RGraph.common.core.js" ></script>    <script src="RGraph.common.key.js"></script> <script src="RGraph.hbar.js"></script> ...

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