cisco — Example: Configuring a Flow

Monitoring Flexible NetFlow The commands in the following table can be used to monitor Flexible NetFlow. Table 4: Flexible NetFlow Monitoring Commands Configuration Examples for Flexible NetFlow Example: Configuring a Flow This example shows how to create a flow and apply it to an interface: Device# configure terminal Enter configuration commands, one per line. End with CNTL/Z.

Device(config)# flow export export1 Device(config-flow-exporter)# destination 10.0.101.254 Device(config-flow-exporter)# transport udp 2055 Device(config-flow-exporter)# exit Device(config)# flow record record1 Device(config-flow-record)# match ipv4 source address Device(config-flow-record)# match ipv4 destination address Device(config-flow-record)# match ipv4 protocol Device(config-flow-record)# match transport source-port Device(config-flow-record)# match transport destination-port Device(config-flow-record)# match flow cts source group-tag Device(config-flow-record)# match flow cts destination group-tag Device(config-flow-record)# collect counter byte long Configuring Flexible NetFlow Monitoring Flexible NetFlow Command Purpose show flow exporter [broker | export-ids | name | name | statistics | templates] Displays information about NetFlow flow exporters and statistics.

show flow exporter [ name exporter-name] Displays information about NetFlow flow exporters and statistics. show flow interface Displays information about NetFlow interfaces. show flow monitor [ name exporter-name] Displays information about NetFlow flow monitors and statistics. show flow monitor statistics Displays the statistics for the flow monitor show flow monitor cache format {table | record | csv} Displays the contents of the cache for the flow monitor, in the format specified. show flow record [ name record-name] Displays information about NetFlow flow records. show sampler [broker | name | name] Displays information about NetFlow samplers. Configuring Flexible NetFlow 32