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

The client application is downloaded from the server and is run in the user's browser. It establishes a real-time web socket to the server, and upon connection the server informs the client of devices available for inspection. As the user chooses a device of interest, the client attaches to the associated socket group in order to receive updates. As the updates arrive, the client will draw the graph within the browser environment:

  1. Create interfaces.html in a text editor of your preference and input the following HTML framework to define some simple stylesheets and to reference the socket.io and RGraph client-side libraries. Leave a space within the <script> tags for placing our web client logic:
  <!DOCTYPE HTML>

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