Name: open-nti-input-oc
Owner: Juniper Networks
Description: OpenConfig input plugin for OpenNTI
Created: 2016-06-10 16:14:15.0
Updated: 2016-08-19 19:54:41.0
Pushed: 2016-08-06 00:54:22.0
Homepage: null
Size: 20
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
OpenConfig input plugin for OpenNTI, based on Telegraf.
clone https://github.com/Juniper/open-nti-input-oc.git
You need to clone a telegraf project into your open-nti-input-oc project
pen-nti-input-oc
clone https://github.com/ajhai/telegraf.git
The container juniper/open-nti-input-oc
is not published. you need to build it yourself
cker.build.sd
There are 2 options to use this project
You need to:
telegraf.conf
with your device IP address and the list of sensor you want.The section [[inputs.openconfig_telemetry]]
at the bottom you need to customize
If you want to have multiple device, you can duplicate the section [[inputs.openconfig_telemetry]]
To enable gRPC on your junos device you need to add these lines of config
system services extension-service request-response grpc clear-text port 50051
system services extension-service request-response grpc skip-authentication
system services extension-service notification allow-clients address 0.0.0.0/0
Authentication will by supported later
If you want to try, you can start the input-plugin and OpenNTI using the following docker-compose file.
If you want to add the container, as part of a main install of OpenNTI, you need:
You can start both containers (open-nti and telegraf) with docker-compose
er-compose -f docker-compose-junos.yml up -d
If you plan to use jvsim to generate data, you need to build the jvsim container first. Instructions are available here : https://github.com/nkumar43212/jvsim
You can start all 3 containers with docker-compose
er-compose -f docker-compose-jvsim.yml up -d
It will start 3 containers:
you can check each container status by looking at the logs
er logs openntiinputoc_jvsim_1
jvsim server will take 10-20s to start
openconfig_telemetry plugin has hard time to manage lost of session
It can happen if the gRPC server is not available