Installing Junos Snapshot Administrator in Python
You install Junos Snapshot Administrator in Python (jsnapy) on a remote server in the network. Prior to installing jsnapy, ensure that the remote server is running an OS that is capable of running Python 2.6 or later. This includes, but is not limited to:
-
Linux (Debian, Ubuntu, Fedora, CentOS, and FreeBSD)
-
Mac OS X
Although Microsoft Windows can run Python 2.6, jsnapy is not supported on Windows.
Due to the wide range of possible supported OSs, there are dependencies within each OS that must also be fulfilled. Table 1 shows the dependencies for each OS.
OS |
Dependencies |
---|---|
CentOS |
|
Debian |
|
Fedora |
|
FreeBSD |
|
OSX |
|
Ubuntu |
|
There are two methods that can be used to install jsnapy: using the Python package manager, pip, or using a Python setup script, setup.py, from cloned github source code.
To install jsnapy using pip, enter the following command
user@jsnapy-server:~> sudo pip install git+https://github.com/Juniper/jsnapy.git
To download the source code and install with the setup script:
Jsnapy is under ongoing development by Juniper and is posted on GitHub. As such, there are often updates available.
To update jsnapy to the latest development code after it is installed on your server, use the
pip
command with the update flag, as shown:user@server:~> sudo pip install -U git+https://github.com/Juniper/jsnapy.git
To update to the latest release code, use the pip command with the update flag, as shown:
user@server:~> sudo pip install -U jsnapy
The jsnapy installer creates the files and directories listed
in Table 7 on the jsnapy server under /etc/jsnapy
:
Directory or File Name |
Purpose |
---|---|
jsnapy.cfg |
This file specifies the default paths for configuration files, snapshot files, and test files. |
logging.yml |
This file specifies the settings for logging of jsnapy events and messages. |
samples |
This directory contains an assortment of sample configuration and test files. |
snapshots |
This directory is the default location for the storage of snapshot files created by jsnapy. The snapshots are stored here by device and test. |
testfiles |
This directory is the default location for storing jsnapy test files. |