Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Installing Junos PyEZ

    Junos PyEZ is a Python library that enables you to remotely manage and automate devices running Junos OS. You can install Junos PyEZ on a Unix-like operating system or on Windows. The following sections outline the dependencies required for each operating system and the instructions for installing the Junos PyEZ package.

    Installing Junos PyEZ Dependencies

    Before you install the Junos PyEZ package on the configuration management server, ensure that the server has the following software installed:

    • Python 2.6 or Python 2.7
    • All dependencies for the given operating system, which are outlined in Table 1

    Table 1: Junos PyEZ Dependencies

    Operating System

    Dependencies

    CentOS

    • pip
    • python-devel
    • libxml2-devel
    • libxslt-devel
    • gcc
    • openssl
    • libffi-devel

    Debian

    • python-pip
    • python-dev
    • libxml2-dev
    • libxslt-dev
    • libssl-dev
    • libffi-dev

    Fedora

    • python-pip
    • python-devel
    • libxml2-devel
    • libxslt-devel
    • gcc
    • openssl
    • libffi-devel

    FreeBSD

    • py27-pip
    • libxml2
    • libxslt

    OSX

    Note: If Junos PyEZ does not successfully
    install using pip, try using easy_install to install
    the lxml library and then Junos PyEZ.

    • xcode
    • pip

    Ubuntu

    • python-pip
    • python-dev
    • libxml2-dev
    • libxslt-dev
    • libssl-dev
    • libffi-dev

    Windows

    • pip
    • pycrypto
    • ecdsa

    Installing the Junos PyEZ Package

    After you install the Junos PyEZ dependencies on the configuration management server, you can install the latest release of Junos PyEZ from PyPI. You can also download the latest version of the code from the Junos PyEZ GitHub repository. To install Junos PyEZ from GitHub, you must have Git installed on the configuration management server.

    To install the current release of Junos PyEZ from PyPI, execute the following command on the command line (use sudo pip where appropriate):

    [root@server]# pip install junos-eznc

    Note: To upgrade an existing version of Junos PyEZ, include the -U or --upgrade option when executing the pip install command.

    To install Junos PyEZ from the GitHub project master branch, execute the following command on the command line (use sudo pip where appropriate):

    [root@server]# pip install git+https://github.com/Juniper/py-junos-eznc.git
     

    For detailed information about installing Junos PyEZ and any required dependencies, see the INSTALL file for your specific operating system in the Junos PyEZ GitHub repository at https://github.com/Juniper/py-junos-eznc.

    Published: 2014-09-29