Router2951#configure terminal

//Creating Flow Record
router2951(config)# flow record NTArecord
router2951 (config-flow-record)# match ipv4 source address
router2951 (config-flow-record)# match ipv4 destination address
router2951 (config-flow-record)# match ipv4 protocol
router2951 (config-flow-record)# match transport source-port
router2951 (config-flow-record)# match transport destination-port
router2951 (config-flow-record)# match ipv4 tos
router2951 (config-flow-record)# match interface input
router2951 (config-flow-record)# collect interface output
router2951 (config-flow-record)# collect counter bytes
router2951 (config-flow-record)# collect counter packets

//Creating Flow Exporter
router2951(config)# flow exporter NTAexport
router2951 (config-flow-exporter)#destination 172.16.0.117
router2951 (config-flow-exporter)# source vlan1
router2951 (config-flow-exporter)# transport udp 2055
router2951 (config-flow-exporter)# template data timeout 60
//Creating Flow Monitor
router2951(config)# flow monitor NTAmonitor
router2951(config-flow-monitor)# record NTArecord
router2951(config-flow-monitor)# exporter NTAexport
router2951(config-flow-monitor)# cache timeout active 60
router2951(config-flow-monitor)# cache timeout inactive 15

//Associating the Monitor to an Interface
router2951(config)# int FastEthernet0/1
router2951(config-if)# ip flow monitor NTAmonitor input