Here are some of the sample device commands for Cisco Nexus 9000:
- To enable the NetFlow feature
configure terminalfeature netflowend - To create flow record
configure terminalflow record vrni-recordmatch ipv4 protocolmatch ipv4 source addressmatch ipv4 destination addressmatch transport source-portmatch transport destination-portmatch interface inputcollect transport tcp flagscollect counter bytescollect counter packetscollect timestamp sys-uptime firstcollect timestamp sys-uptime lastEnd - To create flow exporter
configure terminalflow exporter vrni-exporterdestination <PROXY_IP>transport udp 2055version 9source <INTERFACE_NAME>end - To create the flow monitor for each interface
configure terminalflow monitor vrni-monitorrecord vrni-recordexporter vrni-exporterend - To configure timeouts
configure terminalcache timeout inactive 30cache timeout active 60end - To configure the flow monitor for each interface on the ingress mode and the egress mode or at least the ingress mode
configure terminalinterface <INTERFACE_NAME>ip flow monitor vrni-monitor inputend