flow record record1
match ipv4 source address
match ipv4 destination address
match interface input
match transport source-port
match transport destination-port
match ipv4 protocol
match ipv4 tos
match ipv4 dscp
collect routing forwarding-status
collect routing source as
collect routing destination as
collect transport tcp flags
collect interface output
collect counter packets long
collect counter bytes long
collect timestamp sys-uptime first
collect timestamp sys-uptime last
!
!
flow exporter exporter1
destination 192.168.154.2
source VLAN1
transport udp 9999
template data timeout 60
!
!
flow monitor monitor1
record record1
exporter exporter1
cache timeout inactive 30
cache timeout active 60
cache entries 1000
interface GigabitEthernet 0/1
ip flow monitor monitor1 layer2-switched input