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

Get JUNOS Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.