cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
719
Views
0
Helpful
1
Replies

Net flow error on 2960 WS-C2960X-48FPD-L Version 15.2(2r)E1

Amol Patil
Level 1
Level 1

Hi ,

 

I am getting error like below while doing enable it on interface 

% Flow Monitor: 'monitor1' could not be added.

 

config as belwo :

 

Switch(config)# flow exporter export1
Switch(config-flow-exporter)# destination 10.0.101.254
Switch(config-flow-exporter)# transport udp 2055
Switch(config-flow-exporter)# template data timeout 60
Switch(config-flow-exporter)# exit
Switch(config)# flow record record1
Switch(config-flow-record)# match ipv4 source address
Switch(config-flow-record)# match ipv4 destination address
Switch(config-flow-record)# match ipv4 protocol
Switch(config-flow-record)# match transport source-port 
Switch(config-flow-record)# match transport destination-port 
Switch(config-flow-record)# collect counter bytes long
Switch(config-flow-record)# collect counter packets long
Switch(config-flow-record)# collect timestamp sys-uptime first
Switch(config-flow-record)# collect timestamp sys-uptime last 
Switch(config-flow-record)# exit
Switch(config)# sampler SampleTest
Switch(config-sampler)# mode random 1 out-of 100
Switch(config-sampler)# exit
Switch(config)# flow monitor monitor1
Switch(config-flow-monitor)# cache timeout active 300
Switch(config-flow-monitor)# cache timeout inactive 120
Switch(config-flow-monitor)# record record1
Switch(config-flow-monitor)# exporter export1
Switch(config-flow-monitor)# exit
Switch(config)# interface GigabitEthernet1/0/1
Switch(config-if)# ip flow monitor monitor1 sampler SampleTest input
Switch(config-if)# end
 
1 Reply 1

Hi mate,

You may want to check the log. I got the same message because the following reason:

Feb 13 08:36:15.559: Error: CLI 'interface output physical snmp' not valid in 'input' direction
Feb 13 08:36:36.160: Error: CLI 'interface input physical snmp' not valid in 'output' direction

After removing those commands from the flow record I was able to add the monitor to the interfaces.

Do you get something in your log when trying to apply the command?

I hope it helps.

Cheers!