Juniper v9 MX Series (jFlow)
This document provides a step-by-step guide to configure flow monitoring on Juniper MX Series routers with MS-MIC and MS-MPC for use with ObserveOps (formerly known as AIOps) Flow Explorer.
Step-by-Step Procedure
The following example requires you to navigate through multiple levels of the configuration hierarchy.
Configure the services interface.
[edit interfaces]
user@router1# set interfaces ms-2/0/0 unit 0 family ineta
user@router1# set interfaces ms-2/0/0 unit 1 family inet6
user@router1# set interfaces ms-2/0/0 unit 2 family mpls
Configure the template properties and the export policy timers.
[edit services]
user@router1# set flow-monitoring version9 template template1
user@router1# set flow-monitoring version9 template template1 flow-active-timeout 120
user@router1# set flow-monitoring version9 template template1 flow-inactive-timeout 60
user@router1# set flow-monitoring version9 template template1 ipv4-template
user@router1# set flow-monitoring version9 template template1 template-refresh-rate packets 100
user@router1# set flow-monitoring version9 template template1 template-refresh-rate seconds 600
user@router1# set flow-monitoring version9 template template1 option-refresh-rate packets 100
user@router1# set flow-monitoring version9 template template1 option-refresh-rate seconds 600
Configure service set properties.
[edit services]
user@router1# set service-set ss1 jflow-rules sampling
user@router1# set service-set ss1 sampling-service service-interface ms-2/0/0.0
Configure forwarding options and flow-server properties.
[edit forwarding-options]
user@router1# set sampling input rate 10
user@router1# set sampling input run-length 18
user@router1# set sampling family inet output flow-server {MOTADATA_SERVER_IP} port 2055
user@router1# set sampling family inet output flow-server {MOTADATA_SERVER_IP} version9 template template1
user@router1# set sampling family inet output interface ms-2/0/0.0 source-address X.X.X.X
After completing the configuration, navigate to Menu > Flow Explorer and select the Event Source(s) and the associated Interface(s) from the drop-downs to view the active flow data.