Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
KnealPeert
New Contributor

Fortigate 40F Netflow Config Error

What the heck am I doing wrong here?

 

FortiWifi # config system netflow

FortiWifi (netflow) # set collector-ip 192.168.3.197

command parse error before 'collector-ip'
Command fail. Return code -61

FortiWifi (netflow) #

2 Solutions
Toshi_Esumi
SuperUser
SuperUser

The command lines seem to have changed relatively recently.
https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-Configure-Netflow/ta-p/196080
Check with the CLI reference of your version.

Toshi

View solution in original post

dingjerry_FTNT

Hi @KnealPeert ,

 

You can use any unique ID for it.  Usually, if you don't know or don't have any preferred ID, you can:

 

config system netflow

config collectors

edit 0

set collector-ip 192.168.3.197

......

 

The reason is that you may have multiple collectors. The maximum number of collectors you can configure is 6.  So the ID has to be one of 1-6.

Regards,

Jerry

View solution in original post

4 REPLIES 4
Toshi_Esumi
SuperUser
SuperUser

The command lines seem to have changed relatively recently.
https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-Configure-Netflow/ta-p/196080
Check with the CLI reference of your version.

Toshi

KnealPeert

Ok, thanks for that - I'm on 7.47 so, I missed config collectors - when I do that:

 

FortiWifi (collectors) # set collector-ip 192.168.3.197
Unknown action 0

FortiWifi (collectors) #

 

Documenation - 

config system netflow
set active-flow-timeout Timeout 1800
set inactive-flow-timeout Timeout for periodic report of finished flows (10 - 600 sec, default = 15).
set template-tx-timeout Timeout for periodic template flowset transmission (60 - 86400 sec, default = 1800).
set template-tx-counter Counter of flowset records before resending a template flowset record.
config collectors
edit <table value>    <--I think I'm stuck on this piece.
set collector-ip <Collector IP>
set collector-port <NetFlow collector port number>
set source-ip <Source IP address for communication with the NetFlow agent>
set interface-select-method <Specify how to select outgoing interface to reach server>
end

 

dingjerry_FTNT

Hi @KnealPeert ,

 

You can use any unique ID for it.  Usually, if you don't know or don't have any preferred ID, you can:

 

config system netflow

config collectors

edit 0

set collector-ip 192.168.3.197

......

 

The reason is that you may have multiple collectors. The maximum number of collectors you can configure is 6.  So the ID has to be one of 1-6.

Regards,

Jerry
KnealPeert

Many thanks for the help.

 

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors