예: 단일 SONET/SDH 인터페이스 샘플링
다음 구성은 단일 SONET/SDH 인터페이스에 있는 모든 트래픽의 작은 비율에서 통계 샘플링 정보를 수집하여 sonet-samples.txt라는 파일에 수집합니다.
필터를 만듭니다.
[edit firewall family inet] filter { sample-sonet { then { sample; accept; } } }
필터를 SONET/SDH 인터페이스에 적용합니다.
[edit interfaces] so-0/0/1 { unit 0 { family inet { filter { input sample-sonet; } address 10.127.68.254/32 { destination 10.127.74.7; } } } }
마지막으로 트래픽 샘플링을 구성합니다.
[edit forwarding-options] sampling { input { rate 100; run-length 2; } family inet { output { file { filename sonet-samples.txt; files 40; size 5m; } } }