Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?





Hierarchy Level

Release Information

Statement introduced in Junos OS Release 17.4R1 on MX Series routers.

Statement introduced in Junos OS Release 18.1R1 on PTX Series routers.


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).


egressEnable sensor based statistics on the egress interface.
ingressEnable sensor based statistics on the ingress interface.

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

Required Privilege Level