Use the following commands to enable the Netflow on Cisco 2900 Series Integrated Services Routers (ISR).
ip flow-export destination {hostname|ip_address} 9996
ip flow-export source {interface}
ip flow-export version 5
ip flow-cache timeout active 1
ip flow-cache timeout inactive 15
snmp-server ifindex persist
enable the below command on all the layer 3 interfaces.
interface {interface} {interface_number}
ip flow ingress
exit