- sampling {
-
disable;
-
-
input {
-
-
family (inet | mpls) {
-
max-packets-per-second number;
-
rate number;
-
run-length number;
- }
- }
-
-
output {
-
-
cflowd hostname {
-
-
version9 {
- template template-name;
- }
- }
-
-
aggregation {
- autonomous-system;
- destination-prefix;
- protocol-port;
-
- source-destination-prefix {
- caida-compliant;
- }
- source-prefix;
- }
-
autonomous-system-type (origin | peer);
- (local-dump | no-local-dump);
-
port port-number;
- source-address address;
-
version format;
- }
-
-
file {
-
disable;
-
filename filename;
-
files number;
- size bytes;
- (stamp | no-stamp);
- (world-readable | no-world-readable);
- }
-
flow-active-timeout seconds;
-
flow-inactive-timeout seconds;
-
-
interface [ interface-names ] {
- engine-id number;
- engine-type number;
- source-address address;
- }
- }
-
traceoptions {
-
-
file filename {
-
files number;
- size bytes;
- (world-readable | no-world-readable);
- }
- }
- [edit forwarding-options]
Statement introduced before JUNOS Release 7.4.
sampling statement introduced in JUNOS Release 8.3.
Configure traffic sampling.
The statements are explained separately.
See Configuring a Forwarding Table Filter, Configuring Flow Aggregation (cflowd), Tracing Traffic Sampling Operations, Configuring Active Flow Monitoring Using Version 9, and Configuring Port Mirroring.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.