Configuring Sampling Instances
You can configure active sampling by defining a sampling instance that specifies a name for the sampling parameters and binding the instance name to a particular engine. This configuration enables you to define multiple named sampling parameter sets associated with multiple destinations and protocol families per sampling destination. With cflowd version 5 and version 8 and flow aggregation version 9, you can use templates to organize the data gathered from sampling.
To implement this feature, you include the instance statement at the [edit forwarding-options sampling] hierarchy level:
The following considerations apply to the sampling instance configuration:
- This configuration is supported on the IP version 4 (inet), IP version 6 (ipv6), and MPLS protocol families.
- You can configure the rate and run-length options at the [edit forwarding-options sampling input] hierarchy level to apply common values for all families on a global basis. Alternatively, you can configure these options at the [edit forwarding-options sampling instance instance-name input] hierarchy level to apply specific values for each instance or at the [edit forwarding-options sampling instance instance-name family family input] hierarchy level to apply specific values for each protocol family you configure.
![]() | Note: The run-length and maximum-packet-length configuration statements are not supported on MX80 routers. |
To associate the defined instance with a particular Packet Forwarding Engine, you include the sampling-instances statement at the [edit chassis fpc number] hierarchy level, as in the following example:
For more information about chassis configuration, see the Junos OS System Configuration Guide
