CLI: Netflow
You can use the ip flow-export command to configure netflow export. Netflow records can be exported and sent to 3rd party applications.
Configuring NetFlow
ip flow-export {destination|export|options|template|timeout}
ip flow-export destination <IPv4 address> <udp-port>
[no] ip flow-export export {application|aps|bytes-long|direction|extra-info|
interfaces|lost-bytes|network-delay|network-jitter|output-counts|
packets-long|packets-size|payload-size|policy|rtt|server-delay|tos|
traffic-class|ttl|usernames|vlan|voip}
- application - Export application identification information
- aps - Export the Appliation Performance Score (APS)
- bytes-long - Export byte counters as 64bit values instead of 32bit
- direction - Export flow direction (i.e. inbound|outbound)
- extra-info - Export extra information details (e.g. hostnames, codec names)
- interfaces - Export SNMP input and output interfaces
- lost-bytes - Export lost bytes count
- network-delay - Export network delay
- network-jitter - Export network jitter
- output-counts - Export output packet and byte counts
- packets-long - Export packet counters as 64bit values instead of 32bit values
- packets-size - Export minimum and maximum packet sizes
- payload-size - Set maximum netflow packet payload size
- policy - Export policy identification information
- rtt - Export round trip time (RTT)
- server-delay - Export server delay
- tos - Export minimum and maximum TOS
- traffic-class - Export traffic class id
- ttl - Export minimum and maximum TTL
- usernames - Export username details (see Active Directory and Static Users)
- vlan - Export VLAN identifier
- voip - Export R-Factor
ip flow-export options {refresh-rate|timeout-rate|usernames}
- options refresh-rate <packet_count> - Sets the maximum number of packets allowed between options export
- options timeout-rate <duration_sec> - Sets the maximum number of seconds between options export
- options usernames expiry-rate <duration_hours> - Set the maximum number of hours to remember inactive usernames
- options usernames timeout-rate <duration_min> - Set the maximum number of minutes between export of username options
ip flow-export template {refresh-rate|timeout-rate}
- template refresh-rate <packet_count> - Set the maximum number of packets before template export
- template timeout-rate <duration_sec> - Set the maximum number of seconds before template export
ip flow-export timeout active
- timeout active <duration_min> - How often to export active flow information
Viewing NetFlow Settings
show ip flow-export config
show ip flow-export collectors
show ip flow-export templates {appid|appgroupid|appgroups|ipv4|ipv4voip|ipv4aps}