Description

When upgrading the SRX device you may encounter error regarding "Jflow inline" 

Symptoms

The error would be. as below:
mgd: error: [edit forwarding-options sampling family inet output inline-jflow]
  sampling inline configuration error
    To configure Jflow inline with global instance is deprecated, configure sampling under "instance <name>" for the same.

Solution

To resolve this you would have to add "instance <instance name>" as mentioned in below example:

Problematic config:

set forwarding-options sampling input rate 100
set forwarding-options sampling input run-length 0
set forwarding-options sampling family inet output flow-server 172.16.10.1 port 3333
set forwarding-options sampling family inet output flow-server 172.16.10.1 version9 template ipv4-template
set forwarding-options sampling family inet output inline-jflow source-address 192.168.1.1

Config to be changed as :

set forwarding-options sampling instance inet.0 input rate 100
set forwarding-options sampling instance inet.0 input run-length 0
set forwarding-options sampling instance inet.0 family inet output flow-server 172.16.10.1 port 3333
set forwarding-options sampling instance inet.0 family inet output flow-server 172.16.10.1 version9 template ipv4-template
set forwarding-options sampling instance inet.0 family inet output inline-jflow source-address 192.168.1.1
 

Modification History

2024-07-11 : Article Created