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…

the steps for the recipe are as follows:

  1. Verify that your JUNOS device can be accessed via the NETCONF protocol:
      unix$ ssh -p 830 -i junos_auto_id_rsa auto@10.0.201.201 -s        netconf      <!-- No zombies were killed during the creation of this user       interface -->      <!-- user auto, class j-super-user -->      [...]
  1. If not, revisit Chapter 1, JUNOS NETCONF over SSH Setup in order to:
    • Generate SSH keys
    • Set up an automation user
    • Configure NETCONF over SSH
  1. On your automation or management server, proceed to install the necessary Python components in order to enable PyEZ. Firstly, you need pip – which is the Python package manger, a successor to easy_install:
      ubuntu@ubuntu-xenial:~$ sudo apt-get install python-pip Reading package lists... ...

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