Pcornel
Networking · Network Assurance

Flexible NetFlow

Cheat sheet · https://pcornel.dk/topic.php?topic=730

Back to the Topic

Answer

Flexible NetFlow records conversations passing through an interface: a record defines what identifies a flow and what is counted, a monitor holds the flow cache and is attached to the interface, and an exporter sends finished flows to a collector.

Remember

Four parts must be linked: record → monitor → interface (direction) → exporter. A monitor on input only does not see return traffic. The collector must know the exporter's source address and the template. Flows are exported only after they time out.

First checks

  • show flow interface <interface> — monitors attached, and in which direction.
  • show flow monitor <name> cache — flows currently in the cache.
  • show flow monitor <name> statistics — cache size, flows added and aged.
  • show flow exporter <name> statistics — records sent, and any send failures.
  • show running-config | section flow — the whole configuration.

Commands

show flow monitor <name> cache
Local state
show flow record
show flow monitor
show flow exporter

Verify in this order

record defines key and non-key fields → monitor uses the record and an exporter → attached to the interface in the needed direction → flows appear in the cache → time out → exported from the source interface → collector receives template and records

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Flexible NetFlow · operational reference

LayerCanonical evidenceInterpretation
RecordMatch + collect fieldsDefines flow identity and collected metadata
Monitor/cacheActive flow entries and countersTraffic crosses the observation point
Interface attachmentMonitor + directionDefines where packets are observed
ExporterDestination/source/export statsDevice sends records toward collector

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=730

Confirmation

Confirm action

Continue?