Netflow Example on Cat Switches

flow record FLOW-RECORD-INPUT-01
description Standard NPM flow record
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match interface input
collect interface output
collect counter bytes long
collect counter packets long
collect timestamp absolute first
collect timestamp absolute last
!
flow record FLOW-RECORD-OUTPUT-01
description Standard NPM flow record
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match interface output
collect interface input
collect counter bytes long
collect counter packets long
collect timestamp absolute first
collect timestamp absolute last
!
flow exporter MYMONITOR
destination x.x.x.x –> this is the IP of NPM
source Loopback0
transport udp 2055
export-protocol netflow-v9
template data timeout 60
option application-table timeout 60
!
flow monitor FLOW-MONITOR-INPUT-01
description Default NPM Netflow monitor
exporter MYMONITOR
record FLOW-RECORD-INPUT-01
cache timeout active 60
cache timeout inactive 15

flow monitor FLOW-MONITOR-OUTPUT-01
description Default NPM Netflow monitor
exporter MYMONITOR
record FLOW-RECORD-OUTPUT-01
cache timeout active 60
cache timeout inactive 15

interface range te 1/x/1, te 1/x/2
ip flow monitor FLOW-MONITOR-INPUT-01 input
ip flow monitor FLOW-MONITOR-OUTPUT-01 output

happy Labbing ..!!!!!!!!!