gRPC Services for Junos Telemetry Interface
Configuring gRPC for the Junos Telemetry Interface
You can stream telemetry data for various network elements through gRPC, an open source framework for handling remote procedure calls based on TCP. The Junos Telemetry Interface relies on a so-called push model to deliver data asynchronously, which eliminates polling. For all Juniper devices that run a version of Junos OS with upgraded FreeBSD kernel, you must install the Junos Network Agent software package, which provides the interfaces to manage gRPC subscriptions. For Juniper Network devices that run all other versions of the Junos OS, this functionality is embedded in the Junos OS software. For more information about installing the Junos Network Agent package, see Installing the Network Agent Package.
Before you begin:
-
Install Junos OS Release 16.1R3 or later on your Juniper Networks device.
-
If your Juniper Networks device is running a version of Junos OS with an upgraded FreeBSD kernel, install the Junos Network Agent software package.
-
Install the OpenConfig for Junos module. For more information see, Installing the OpenConfig Package.
To configure your system for gRPC services specify the API connection setting based on Secure Socket Layer (SSL) technology.
For example, to set the API connection:
[edit system services] user@host# set extension-service request-response grpc ssl
For an SSL-based connection, you must specify a local-certificate name. You can rely on the default IP address (::) to enable Junos to “listen” for all IPv4 and IPv6 addresses on incoming connections. If you would rather specify an IP address, follow step 2 below.
See Also
Configuring Bidirectional Authentication for gRPC for Junos Telemetry Interface
Starting with
Junos OS Release 17.4R1, you can configure bidirectional authentication
for gRPC sessions used to stream telemetry data. Previously, only authentication of the server, that is, Juniper
device, was supported. Now the external client, that is management
station that collects data, can also be authenticated using SSL certificates.
The JET service process (jsd
), which supports application
interaction with Junos OS, uses the credentials provided by the external
client to authenticate the client and authorize a connection.
Before you begin:
If your Juniper device is running a version of Junos OS with an upgraded FreeBSD kernel, install the Junos Network Agent software package.
Install the OpenConfig for Junos module. For more information see, Installing the OpenConfig Package.
Configure the gRPC server. For more information, see Configuring gRPC for the Junos Telemetry Interface.
To configure authentication for the external client, that is, management station that collects telemetry data streamed from the Juniper device:
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.