See the following sections:
- sampling {
-
disable;
-
-
input {
-
-
family (inet | mpls) {
-
max-packets-per-second number;
-
rate number;
-
run-length number;
- }
- }
-
-
output {
-
aggregate-export-interval seconds;
-
-
cflowd hostname {
-
-
aggregation {
- autonomous-system;
- destination-prefix;
- protocol-port;
-
- source-destination-prefix {
- caida-compliant;
- }
- source-prefix;
- }
-
autonomous-system-type (origin | peer);
-
-
label-position {
-
template template-name;
- }
- (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-name {
-
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.
Configure traffic sampling.
The statements are explained separately.
See Configuring Traffic Sampling.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- sampling direction;
- [edit interfaces mo-fpc/pic/port unit logical-unit-number family inet]
Statement introduced before JUNOS Release 7.4.
Configure the direction of traffic to be sampled.
input—Configure at least one expected ingress point.
output—Configure at least one expected egress point.
input output—On a single interface, configure at least one expected ingress point and one expect egress point.
See Configuring Flow Monitoring.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.