[an error occurred while processing this directive][an error occurred while processing this directive]

Example: Sampling All FTP Traffic

The following configuration gathers statistical information about a moderate percentage of packets using FTP in the output path of a specific T3 interface, and collects the information in a file named t3-ftp-traffic.txt.

Create a filter:

[edit firewall family inet]filter ftp-stats {term ftp-usage {from {destination-port [ftp ftp-data];}then {sample;accept;}}}

Apply the filter to the T3 interface:

[edit interfaces]t3-7/0/2 {unit 0 {family inet {filter {input ftp-stats;}address 10.35.78.254/32 {destination 10.35.78.4;}}}}

Finally, gather statistics on 10 percent of the candidate samples:

[edit forwarding-options]sampling {input {rate 10;}family inet {output {file {filename t3-ftp-traffic.txt;files 50;size 1m;}}}}

Published: 2010-04-15

[an error occurred while processing this directive]