You can perform Cisco 3650 IOS Switch configuration using the following steps:
Config t
flow exporter-map NFAexporter
destination {NETFLOW_SERVER_IP}
transport udp {NETFLOW_SERVER_LISTENER_PORT}
source {LOOPBACK_INTERFACE_NAME}
version 9
template data timeout 60
template options timeout 60
option sampler-table timeout 60
sample-map NFAsampler
random 1 out-of 100
flow monitor-map NFAmonitor
exporter NFAexporter
record ipv4
cache timeout active 60
Enter global configuration mode on the router or MSFC, and issue the following commands for each interface on which you want to enable flow:
interface {INTERFACE_NAME}
flow ipv4 monitor NFAmonitor sampler NFAsampler ingress