To configure flow monitoring and accounting properties, include the following statements at the [edit forwarding-options] hierarchy level:
![]() |
Note: For the complete [edit forwarding-options] hierarchy, see the JUNOS Policy Framework Configuration Guide. This listing includes only the statements used in flow monitoring and accounting services. |
-
accounting name {
-
-
output {
-
aggregate-export-interval seconds;
-
-
cflowd hostname {
-
-
aggregation {
- autonomous-system;
- destination-prefix;
- protocol-port;
-
- source-destination-prefix {
- caida-compliant;
- }
- source-prefix;
- }
-
autonomous-system-type (origin | peer);
-
port port-number;
-
version format;
- }
- flow-active-timeout seconds;
-
flow-inactive-timeout seconds;
-
-
interface interface-name {
-
engine-id number;
-
engine-type number;
-
source-address address;
- }
- }
- }
-
monitoring name {
-
-
family inet {
-
-
output {
-
cflowd hostname port port-number;
-
export-format format;
-
flow-active-timeout seconds;
-
-
flow-export-destination {
- collector-pic;
- }
-
flow-inactive-timeout seconds;
-
-
interface interface-name {
-
engine-id number;
-
engine-type number;
-
input-interface-index number;
-
output-interface-index number;
-
source-address address;
- }
- }
- }
-
next-hop-group [ group-names ] {
-
- interface interface-name {
- next-hop [ addresses ];
- }
- }
-
port-mirroring {
-
-
input {
-
rate rate;
-
run-length number;
- }
-
-
family (inet | inet6) {
-
-
output {
-
-
interface interface-name {
-
next-hop address;
- }
-
no-filter-check;
- }
- }
-
-
traceoptions {
-
-
file filename {
-
files number;
-
size bytes;
- (world-readable | no-world-readable);
- }
- }
- }
-
sampling {
-
disable;
-
-
input {
-
-
family (inet | inet6 | mpls)
{
-
max-packets-per-second number;
-
rate number;
-
run-length number;
- }
- }
-
-
output {
-
aggregate-export-interval seconds;
-
-
cflowd hostname {
-
-
aggregation {
- autonomous-system;
- destination-prefix;
- protocol-port;
-
- source-destination-prefix {
- caida-compliant;
- }
- source-prefix;
- }
-
autonomous-system-type (origin | peer);
-
-
version9 {
-
template template-name;
- }
- (local-dump | no-local-dump);
-
port port-number;
-
source-address address;
-
version format;
- }
-
-
file {
-
disable;
-
filename filename;
-
files number;
-
size bytes;
- (stamp | no-stamp);
- (world-readable | no-world-readable);
- }
-
flow-active-timeout seconds;
-
flow-inactive-timeout seconds;
-
-
interface interface-name {
-
engine-id number;
-
engine-type number;
-
source-address address;
- }
- }
-
-
traceoptions {
-
-
file filename {
-
files number;
-
size bytes;
- (world-readable | no-world-readable);
- }
- }
- }