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…

Step 1 validates that access to JUNOS works correctly. This tests:

  • IP-layer connectivity between our management host and the JUNOS device,
  • That the NETCONF-over-SSH service is running on TCP port 830
  • Our ability to create an SSH session with the provided key.

If any of these conditions don’t hold, then we circle back on one of the recipes as described in step 2.

In step 3, we use the apt-get features of Ubuntu in order to download the Python package manager, pip. pip provides a simplistic way of managing external Python packages and modules. In a lot of cases, pip will be installed along with Python and this step may not even be necessary.

Step 4 makes use of pip in order to install PyEZ, which has the Python module name of ...

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