Step 1 – Create the main HTML file

We will design a web-based form to select certain show commands that we will call for performing checks. These commands, when executed, will act as a precheck; once our maintenance activity is complete, we will act again as a postcheck.

Any difference between the same command outputs in precheck or postcheck scenarios will be highlighted and the engineer will be in a good position to make decisions on calling the maintenance a success or failure, based on the outputs.

The HTML code (prepostcheck.html) is as follows:

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>         <script>             function checkme() {        var a=document.forms["search"]["cmds"].value; var b=document.forms["search"]["searchbox"].value; ...

Get Practical Network Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.