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 it works...

The config-monitor.js server process is the central work-horse behind the magic that happens within this recipe. It receives the transcripts of JUNOS OS show commands which report differences and floods them out to the connected web clients using the impressive socket.io real-time framework library. However, config-monitor.js workload is made significantly easier, by being able to rely on the underlying operating system's SSH facility, and UNIX permissions system in order to receive files and authenticate incoming connections. Instead of the dealing with the complexity of the SSH protocol, it can simply monitor a spool directory to watch for new files.

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