statistics
Syntax
statistics { no-ingress; no-transit; }
Hierarchy Level
[edit logical-systems name protocols source-packet-routing telemetry], [edit protocols source-packet-routing telemetry]
Description
Enable traffic-statistics collection on SR-TE policies through sensors for both SR-TE policy next hop and binding segment identifier (SID) installed in the forwarding table, by using JVISION traffic sensors in Junos data plane to stream out traffic statistics on static segment routing policies and their corresponding binding SID routes.
Options
-
Default: By default statistics collection is disabled for static SR-TE routes.
no-ingress |
(Optional) Create sensors for binding SID transit routes only. |
no-transit |
(Optional) Create sensors for SR-TE policy next hops and collect statistics on all steering routes that use the SR-TE policy as nexthop. |
no-ingress
and no-transit
are mutually
exclusive. You cannot disable traffic collection at both destination route and
binding SID route.If you enable statistics collection and do not configure one
of the two options then the sensors collect traffic statistics steered by all
routes that use the
SR-TE
policy as a nexthop and the labeled traffic steered by the binding SID that are
installed in the forwarding table.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 18.3R1.