Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

sensor-based-stats

Syntax

Hierarchy Level

Description

Enable the collection of aggregate segment routing statistics for the Source Packet Routing in Networking (SPRING) traffic only, excluding RSVP and LDP-signaled traffic. Family MPLS statistics per interface are accounted for separately. The SR statistics also include SPRING traffic statistics per link aggregation group (LAG) member and per segment identifier (SID). The statistics are collected using the Juniper telemetry interface in an OpenConfig compliant format for Layer 3 interfaces.

Note:

This statement is also available for LDP and MPLS statistics. For more information see sensor-based-stats (Junos Telemetry Interface).

For additional information about configuring these statistics sensors to stream data through gRPC, see Guidelines for gRPC and gNMI Sensors (Junos Telemetry Interface).

Enables the collection of on box telemetry spring sensor-based traffic statistics using the subscribe statement. As a result, the configuration triggers and records the on box telemetry for spring sensor-based statistics. The configuration creates a connection with network-agent and subscribes to the configured sensor path. The sensor path is installed on the Packet Forwarding Engine.

Options

per-interface-per-member-link

Configure sensor-based statistics per nexthop. Sensor-based statistics is the traffic statistics in a segment routing (SR) network that can be recorded in an OpenConfig compliant format for Layer 3 interfaces. The statistics is recorded for the Source Packet Routing in Networking (SPRING) traffic only, excluding RSVP and LDP-signaled traffic, and the family MPLS statistics per interface is accounted for separately. The SR statistics also includes SPRING traffic statistics per link aggregation group (LAG) member, and per segment identifier (SID).

egress

Enable sensor based statistics on the egress interface.

ingress

Enable sensor based statistics on the ingress interface.

Note:

On PTX Series Routers, the sensor-based statistics for SPRING traffic is recorded at the ingress interface only.

per-sid

Configure sensor based statistics per Source Packet Routing in Networking (SPRING) route. Sensor-based statistics is the traffic statistics in a segment routing (SR) network that can be recorded in an OpenConfig compliant format for Layer 3 interfaces. The statistics is recorded for SPRING traffic only, excluding RSVP and LDP-signaled traffic, and the family MPLS statistics per interface is accounted for separately. The SR statistics also includes SPRING traffic statistics per link aggregation group (LAG) member, and per segment identifier (SID).

egress

Enable sensor based statistics for IP-MPLS egress accounting. This is supported only for segment routing label egress routes at the ingress provider edge (PE) device.

ingress

Enable sensor based statistics for per-sid ingress accounting.

subscribe

Enables the collection of on box telemetry spring sensor- based traffic statistics with the interval range for interval configurationbetween 30 to 86400 seconds.

interval

"interval" configuration indicates the time interval for sampling the telemetry updates. The configured range for interval can vary from 30 to 86400 seconds.

Required Privilege Level

routing—To view this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 17.4R1.

Support at the [edit protocols (ospf | ospf3) source-packet-routing] hierarchy level introduced in Junos OS Release 23.1R1 and Junos OS Evolved Release 23.1R1.