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

How to do it…

There are four separate components to the recipe:

  • An OpenSSH server that accepts incoming file transfers to a spool directory,
  • A JUNOS configuration that will instruct the device to respond to configuration commit events, and execute commands to upload configuration via SSH to a server
  • A web server application that:
    • Listens for web client connections and interacts with them to present a log of changes
    • Monitors the contents of an incoming spool directory and reacts to arrivals by communicating the contents to any connected web clients in real-time
  • A basic web page incorporating JavaScript in order to implement the web client

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