12-31-2021 07:26 AM - edited 12-31-2021 07:46 AM
I got Netflow working in combination with Solarwinds but I'm also trying to integrate NBAR with it. When I add the command:-
"match application name" to my flow records and apply it to my interface I the result below.
% Flow Monitor: Failed to add monitor to interface: Invalid set of fields in monitor record for wired interface
My Config for example:
flow record NETFLOW_REC_IN
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match flow direction
match interface input
collect counter bytes long
collect counter packets long
flow record NETFLOW_REC_OUT
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match flow direction
match interface output
collect counter bytes long
collect counter packets long
flow exporter NETFLOW_EXP
destination <Solarwinds>
source vlan 66
transport udp 2055
flow monitor NETFLOW_MON_IN
exporter NETFLOW_EXP
record NETFLOW_REC_IN
flow monitor NETFLOW_MON_OUT
exporter NETFLOW_EXP
record NETFLOW_REC_OUT
sampler NETFLOW_SAM
mode random 1 out-of 2
interface g1/0/48
ip flow monitor NETFLOW_MON_IN sampler NETFLOW_SAM input
ip flow monitor NETFLOW_MON_OUT sampler NETFLOW_SAM output
% Flow Monitor: Failed to add monitor to interface: Invalid set of fields in monitor record for wired interface
% Flow Monitor: Failed to add monitor to interface: Invalid set of fields in monitor record for wired interface
How do I fix this?
12-31-2021 07:28 AM
01-02-2022 02:03 AM
Hello,
Some combinations of “match” and “collect” fields are not allowed and we might see the following error if the combination is not supported:
% Flow Monitor: Failed to add monitor to interface: Invalid set of fields in monitor record for wired interface
You can try with the following configuration which worked for me:
You may refer to below for any restrictions on FNF and NBAR:
01-03-2022 12:00 AM - edited 01-03-2022 12:05 AM
Hi jmodagi,
The switch accepts the input this time however Solarwinds does not interpret this well. I am not receiving any updates when using the config template above.
The only config that worked for me is this one but is is without NBAR. I've tried combining the two but no luck.
https://davidsudjiman.wordpress.com/2020/09/02/netflow-on-cisco-catalyst-9200-for-solarwinds/
01-03-2022 04:48 AM
Hello,
Does "ip nbar protocol-discovery" configured under the interface where the flow monitor is applied? If not, then it reset all the interface configuration and apply flow monitor configuration again with given protocol-discovery command.
Also, did you check if the switch is sending out any Netflow packets to Solarwinds?
I suggest the below to isolate the point of failure and proceed accordingly:
- Check flow monitor cache output on switch to see if it sending Netflow packets to Solarwinds
- Check and confirm the port used for receiving Netflow traffic on Solarwinds? And is the port opened on Solarwinds?
- Collect packet capture on switch egress interface to confirm the Netflow packets being sent out from switch
- Collect packet capture on Solarwinds server ingress interface to see any Netflow packets sent from Switch
With above I believe you should be able to find where is the issue (on switch,solarwinds or drop in transit). Based on your finding, you can find the solution or reach respective tech support for help.
02-01-2022 12:04 AM - edited 02-01-2022 12:07 AM
Solarwinds TAC checked the packet capture. There are a lot of unknown fields on the IPFIX template that causes it not to be recognized by NTA.
According to Solarwinds TAC I need to ensure the mandatory fields are present on the template such as InputSNMP or OutputSNMP field that determines the Netflow data if ingress or egress. More information below:
https://documentation.solarwinds.com/en/success_center/nta/content/nta-required-fields-sw148.htm
02-01-2022 01:01 AM
Hello,
I have read through the Solarwinds documentation...what if you add the lines marked in bold ?
flow record NETFLOW_REC_IN
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match flow direction
match interface input
collect counter bytes long
collect counter packets long
--> collect application name
!
flow record NETFLOW_REC_OUT
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match flow direction
match interface output
collect counter bytes long
collect counter packets long
--> collect application name
!
flow exporter NETFLOW_EXP
destination <Solarwinds>
source vlan 66
transport udp 2055
--> option application-table timeout 60
--> option application-attributes timeout 300
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