In this example, you enable active flow monitoring using version 9. You specify a template mpls that you configure at [edit services monitoring] hierarchy level. You also configure the traffic family mpls to sample.
- [edit forwarding-options]
- sampling {
-
- input {
-
- family mpls {
- rate 1;
- run-length;
- }
- }
-
- output {
-
- cflowd 10.60.2.1 { # The IP address and port of the host
- port 2055; # that collects the sampled traffic flows.
- source-address 3.3.3.1;
-
- version9 {
- template mpls; # Version 9 records are sent
- } # using the template named mpls
- }
- }