Command Line (CLI) Reference > CLI Commands > Netflow

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}

To set the destination address and port (UDP) of the device that will receive netflow records:

ip flow-export destination <IPv4 address> <udp-port>

To configure which information is sent:

[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}

To control refresh settings for export of options:

ip flow-export options {refresh-rate|timeout-rate|usernames}

To control refresh settings for export of templates:

ip flow-export template {refresh-rate|timeout-rate}

To control how often netflow records are exported:

ip flow-export timeout active

Viewing NetFlow Settings

To show the current flow-export settings:

show ip flow-export config

To show currently configured netflow destinations:

show ip flow-export collectors

To show netflow template details:

show ip flow-export templates {appid|appgroupid|appgroups|ipv4|ipv4voip|ipv4aps}