Junos packages - ksator/junos_monitoring_with_healthbot GitHub Wiki
In order to collect data from Junos using openconfig telemetry, the devices require the Junos packages openconfig and network agent
Starting with Junos OS Release 18.3R1:
- the Junos OS image includes the
OpenConfigpackage; therefore, you do not need anymore to installOpenConfigseparately on your device. - the Junos OS image includes the
Network Agent, therefore, you do not need anymore to install thenetwork agentseparately on your device.
This setup is using an older Junos release, so it is required to install these two packages.
Download these two packages from Juniper website and save them in your local directory.
we will execute the python script upgrade_junos.py to add these two packages to the Junos devices indicated in this inventory.yml file
Install the requirements:
$ sudo apt install python-pip
$ pip install junos-eznc
Update the devices inventory:
$ vi inventory.yml
Run this command to execute the python script upgrade_junos.py
$ python ./upgrade_junos.py
ssh to a Junos device and verify it uses these packages:
jcluser@vMX1> file list
/var/home/jcluser/:
junos-openconfig-x86-32-0.0.0.10-1.tgz
network-agent-x86-32-18.2R1-S3.2-C1.tgz
jcluser@vMX1> show version | match "Junos:|openconfig|na telemetry"
Junos: 18.2R1.9
JUNOS na telemetry [18.2R1-S3.2-C1]
JUNOS Openconfig [0.0.0.10-1]