Here goes my config
@rt1> show configuration services
flow-monitoring {
version9 {
template v4 {
flow-active-timeout 120;
flow-inactive-timeout 60;
template-refresh-rate {
packets 100;
seconds 600;
}
option-refresh-rate {
packets 100;
seconds 600;
}
ipv4-template;
}
}
}
@rt1> show configuration forwarding-options sampling
instance {
NetFlow {
input {
rate 200;
}
family inet {
output {
flow-server x.x.x.x {
port 9996;
autonomous-system-type peer;
no-local-dump;
source-address y.y.y.y;
version9 {
template {
v4;
}
}
}
inline-jflow {
source-address y.y.y.y;
flow-export-rate 100;
}
}
}
}
}
@rt1> show configuration chassis
dump-on-panic;
redundancy {
routing-engine 0 backup;
routing-engine 1 master;
failover {
on-loss-of-keepalives;
on-disk-failure;
}
graceful-switchover;
}
fpc 1 {
sampling-instance NetFlow;
}
@rt1> show configuration interfaces xe-0/0/1
unit 0 {
family inet {
filter {
input Filter-IN;
}
address x.x.x.x/z;
}
family mpls;
}
@rt1> show configuration firewall filter Filter-IN
term Resto {
then {
sample;
accept;
}
}