sflow
Syntax (EX Series)
sflow { adaptive-sample-rate rate { fallback; sample-limit-threshold sample-limit-threshold; } agent-id { ipv4-address; inet6 ipv6-address; } collector ip-v4/v6-address { udp-port port-number; } ; interfaces interface-name { polling-interval seconds; sample-rate { egress rate; ingress rate; } } polling-interval seconds; sample-rate { egress rate; ingress rate; } source-ip { ipv4-address; inet6 ipv6-address; } traceoptions { file filename <files number> <no-stamp> <replace> <size size> <world-readable | no-world-readable>; flag flag; } }
Syntax (MX Series and EX92xx)
sflow { adaptive-sample-rate rate { fallback; sample-limit-threshold sample-limit-threshold; } agent-id { ipv4-address; inet6 ipv6-address; } collector ip-v4/v6-address { dscp dscp; forwarding-class forwarding-class; udp-port port-number; } interfaces interface-name { polling-interval seconds; sample-rate { egress rate; ingress rate; } } polling-interval seconds; sample-rate { egress rate; ingress rate; } source-ip { ipv4-address; inet6 ipv6-address; } traceoptions { file filename <files number> <no-stamp> <replace> <size size> <world-readable | no-world-readable>; flag flag; } }
Syntax (PTX Series, QFX Series, OCX Series, ACX Series, and EX4600)
sflow { adaptive-sample-rate rate { fallback; sample-limit-threshold sample-limit-threshold; } agent-id { ipv4-address; inet6 ipv6-address; } collector ip-v4/v6-address { dscp dscp; forwarding-class forwarding-class; udp-port port-number; } disable-sw-rate-limiter; interfaces interface-name { polling-interval seconds; sample-rate { egress number; ingress number; } } polling-interval seconds; sample-rate { egress number; ingress number; } sample-size Sample-Size; source-ip { ipv4-address; inet6 ipv6-address; } traceoptions { file filename <files number> <no-stamp> <replace> <size size> <world-readable | no-world-readable>; flag flag; } }
Hierarchy Level
[edit protocols]
Description
Configure sFlow technology to continuously monitor traffic at wire speed on specified interfaces simultaneously. sFlow data can be used to provide network traffic visibility information. You can configure sample size of the raw packets in the sFlow record. The range varies from 128 bytes to 512 bytes.
Default
sFlow technology is disabled by default.
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 9.3.
dscp
and forwarding-class
options introduced in
Junos OS Release 19.1R1, for PTX routers and QFX switches (previously introduced for
MX Series).
sample-size
option introduced in Junos OS
Evolved Release 23.1R1, for PTX routers.