04-22-2019 11:18 PM
Hi All,
I have configured the netflow v5 collection on one of my ASR1002 , but it never collect the flow . Could you guys give some suggestion ?
Version : ASR1000 Software (PPC_LINUX_IOSD-ADVENTERPRISEK9-M), Version 15.4(3)S10
Configurations:
flow exporter ttt
destination 10.30.30.2
source GigabitEthernet0/0/3
transport udp 9999
export-protocol netflow-v5
!
!
flow monitor ttt
exporter ttt
cache timeout inactive 1
cache timeout active 1
cache entries 2000000
record netflow-original
!
sampler ttt
mode random 1 out-of 2
!
!
interface GigabitEthernet0/0/3
ip address 10.66.67.6 255.255.255.252
ip flow monitor ttt sampler ttt input
ip flow monitor ttt sampler ttt output
negotiation auto
end
Issue:
Cache type: Normal (Platform cache)
Cache size: 2000000
Current entries: 0
Flows added: 0
Flows aged: 0
I have tried to change the sampling rate to 1/2 , but it still cannot generate any flow information . But actually , the configurations above works well in my another ASR1002 .
Solved! Go to Solution.
04-23-2019 05:47 AM
Current configuration:
!
flow monitor ttt
exporter ttt
cache timeout inactive 1
cache timeout active 1
record netflow-original
!
router#sh flow monitor ttt statistics
Cache type: Normal (Platform cache)
Cache size: 200000
Current entries: 88
High Watermark: 5453
Flows added: 326674833
Flows aged: 326674745
- Active timeout ( 1 secs) 326673279
- Inactive timeout ( 1 secs) 1466
04-23-2019 05:50 AM
04-23-2019 06:26 AM
Many thanks for your help ,I will do some tests to confrim more
04-23-2019 06:47 AM
I defined the same conditions as "sh ip flow record netflow ipv4 original-input" in record template , and then apply it in monitor template . At last invoke the monitor template under interface , But the error message was displayed :
Warning: Exporter ttt could not be activated because: Invalid arguments provided
04-23-2019 07:03 AM
05-06-2020 05:56 PM
I know this is an old post but I have same problem with ASR. I know Cisco doc says "Management Interface--NetFlow data export is not supported through the Management Interface port."
What if the NetFlow collector is only reachable via the managment vrf or port? You must establish reachability via a different port other than the mgmt 0 port or a port that is assigned with the mgmt-vrf correct (it still accepts the "destination 11.1.1.20 vrf-mgmt" command)?
So i have NetFlow turned on another port, g0/1 like below, and source from that same port (no other up port or Lo available to source) but still does not show any data exported nor does the Collector show it receives anything when there is statistics (see below - built same setup using VIRL so just tweeked some characters but this is exactly how it is on the ASR).
Also, if you enable the Monitor on a interface can you enter a source command using the same interface?
This is my config:
flow record TEST-Record1
description Netflow to SW
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match transport source-port
match transport destination-port
match transport tcp destination-port
match transport udp destination-port
match ipv4 tos
match interface input
match interface output
collect timestamp sys-uptime first
collect timestamp sys-uptime last
collect timestamp absolute first
collect application name
collect counter bytes long
collect counter packets long
!
!
flow exporter TEST-Exporter1
destination 11.1.1.20 vrf-mgmt (tried without the vrf-mgmt too)
source gigabitEthernet 0/1
transport udp 2055
template data timeout 8400
option application-table timeout 60
option application-attributes timeout 300
!
!
flow monitor TEST-Monitor1
exporter Flow-Exporter1
cache timeout active 60
record Flow-Record1
interface gigabitEthernet 0/1
ip flow monitor TEST-Monitor1 input
------------------------
Flow Exporter TEST-Exporter1:
Packet send statistics (last cleared 00:06:14 ago):
Successfully sent: 1219 (1604180 bytes)
Reason not given: 4 (288 bytes)
Client send statistics:
Client: Option options application-name
Records added: 9856
- sent: 9856
Bytes added: 818048
- sent: 818048
Client: Option options application-attributes
Records added: 2766
- sent: 2766
Bytes added: 625116
- sent: 625116
Client: Flow Monitor TEST-Monitor1
Records added: 6
- sent: 6
Bytes added: 372
- sent: 372
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide