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 steps for this section are as follows:

  1. Create a file index.html within the web application directory. In the <head> of the HTML tag, implement some simplistic CSS styling rules in order to differentiate the configuration extract text from the comment text:
 <!DOCTYPE HTML> <html>   <head>     <title>JUNOS Configuration Monitor</title>     <style>       div {         margin: 0px;       }       .heading {         display: block;         font-family: sans-serif;         font-size: 18px;         font-weight: bold;       }       .comment {         display: block;         font-family: sans-serif;         background-color: black;         color: white;       }       .log {         border: solid 1pt black;         display: block;         font-family: monospace;         white-space: pre;       }     </style>
  1. Then include a client-side JavaScript in order to connect the server to event ...

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