You configure traffic sampling results to a file in the /var/tmp directory. To collect the sampled packets in a file, include the file statement at the [edit forwarding-options sampling output] hierarchy level:
- [edit forwarding-options sampling output]
-
file {
- disable;
-
filename filename;
-
files number;
- size bytes;
- (stamp | no-stamp);
- (world-readable | no-world-readable);
- }
To configure the period of time before an active flow is exported, include the flow-active-timeout statement at the [edit forwarding-options sampling output] hierarchy level:
- [edit forwarding-options sampling output]
- flow-active-timeout seconds;
To configure the period of time before a flow is considered inactive, include the flow-inactive-timeout statement at the [edit forwarding-options sampling output] hierarchy level:
- [edit forwarding-options sampling output]
- flow-inactive-timeout seconds;
To configure the interface, include the interface statement at the [edit forwarding-options sampling output] hierarchy level:
- [edit forwarding-options sampling output]
- interface [ interface-names ] {
- engine-id number;
- engine-type number;
- source-address address;
- }
To configure the interval before exporting an active flow, include the flow-active-timeout statement. To configure the interval before a flow is considered inactive, include the flow-inactive-timeout statement. To configure the interface that sends out monitored information, include the interface statement.
![]() |
Note: This feature is not supported with the version 9 template format. You must send traffic flows collected using version 9 to a server. For more information see Configuring Active Flow Monitoring Using Version 9. |