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

Running the application

When we start the server application at the command line, we see a series of event reports as things happen. The server application first of all tried to connect to the SSH client for each of the JUNOS endpoints that are declared in the configuration file. It then tried to retrieve, in order, interface and route-engine information from all endpoints. Then it recorded the web socket connections from the web clients. The main socket telemetry is a client connecting to the main page and receiving a configuration event telling it about available devices. The group socket telemetry is an attachment to a device of interest, based upon the drop-down list in the user interface:

0$ ./collector.js -f config.json 127.0.0.1:8930: ...

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