Use it when binding a flow record and exporter, and tuning the flow cache.
Flow Monitor
A Flexible NetFlow monitor binds a flow record and exporters, holds the flow cache and timeouts, and is attached to interfaces with ip flow monitor <name> input|output.
1. A flow monitor ties a record and exporter and holds the cache.
2. Timeouts control export timing.
3. Cache size limits flows.
4. Apply to interfaces.
5. Watch cache full drops.
traffic → monitor cache → timeouts → exporter
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
flow monitor <name>Primary Commands
Configuration and operational commands for this Topic.
flow monitor <name>ReferenceCreate a Flexible NetFlow monitor that ties a record to exporters.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedrecord <record>ReferenceAttach a flow record to a flow monitor.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedexporter <exporter>ReferenceAttach a flow exporter to a flow monitor.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedcache timeout active <seconds>ReferenceSet how long an active NetFlow flow is cached before it is exported.
Use when: Use this command at the NetFlow / Flexible NetFlow boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A populated local cache does not prove export; collector receipt does not provide packet payload.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Use show flow monitor <name> and cache commands to confirm the bound record, exporter, cache size and active entries. Verify packet/byte counters increase for traffic that definitely traverses the attached interface. Inspect example keys and timestamps to ensure aggregation matches the intended record. Then check interface configuration or monitor attachment output to show direction. An empty cache with active user traffic usually points toward attachment, direction, traffic path or record applicability before it points toward the exporter. A populated cache plus stable exporter counters can establish strong device-side telemetry health, while collector receipt remains a separate check.
- Match fields define the flow key; collect fields add measurements
- The monitor binds record and exporter
- Interface and direction determine observation point
- Cache population and exporter delivery are separate evidence boundaries.
show flow monitor <name> cache— current flowsshow flow monitor <name> statistics— cache use
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
The flow monitor ties a record to exporters and holds the flow cache
The Catalyst 9300 Flexible NetFlow guide describes the flow monitor as binding a record, one or more exporters, and cache settings: record, exporter, cache timeout active, cache timeout inactive and cache type normal. The defaults are an active timeout of 1800 s and an inactive timeout of 15 s.
C9300(config)# flow monitor FM-IPV4-IN
C9300(config-flow-monitor)# record FR-IPV4
C9300(config-flow-monitor)# exporter FE-COLLECTOR1
C9300(config-flow-monitor)# exporter FE-COLLECTOR2
C9300(config-flow-monitor)# cache timeout active 60
C9300(config-flow-monitor)# cache timeout inactive 15
C9300# show flow monitor FM-IPV4-IN statistics
Cache type: Normal (Platform cache)
Cache size: Unknown
Current entries: 12834
Flows added: 9128831
Flows aged: 9115997
- Active timeout ( 60 secs) 2183302
- Inactive timeout ( 15 secs) 6932695
Timeouts
| Timeout | Meaning | Effect of the value |
|---|---|---|
| Active | A long-lived flow is exported periodically while still active | The default 1800 s means a long download shows up 30 minutes late; 60 s gives near-real-time graphs |
| Inactive | A flow idle this long is exported and removed | Short values free cache entries quickly |
Capacity (documented)
| Limit | Value |
|---|---|
| Flow monitors | Up to 15 |
| Table size | 32K ingress and 32K egress entries per core/ASIC (Essentials and Advantage) |
| Practical utilisation | Around 80 % because of hash collisions |
| IPv6 and datalink flows | Two entries per flow |
| Sharing | A monitor can't be shared between Layer 3 physical and logical interfaces |
Sampling
With very high flow rates, attach a sampler (sampler SMP mode random 1 out-of 100) to the monitor on the interface. The guide lists four hardware samplers. The collector multiplies sampled counts to estimate totals.
Documented example, not captured output.
Quick reference
A flow monitor ties a flow record to one or more exporters and defines the cache: its size and the active and inactive timeouts after which flows are exported.
flow monitor NF-MON
record NF-REC
exporter NF-EXP
cache timeout active 60
cache timeout inactive 15
Documented example, not captured output.
| Timeout | Effect |
|---|---|
| Active | Long flows are exported periodically |
| Inactive | Idle flows are exported and removed |
Check cache usage with show flow monitor NF-MON statistics to avoid cache full drops.
State model and protocol mechanics
A Flow Monitor turns a flow-record schema into runtime flow state. The monitor references a record, maintains a cache of active/inactive flows and can reference one or more exporters depending on platform capabilities. Flow aging controls when inactive or long-lived cache entries are expired and exported. The cache is populated only after the monitor is attached to an observation point and packets cross that point. Ingress and egress monitors observe different forwarding stages and can therefore see different header values or packet counts. The monitor is the most useful device-side evidence point because it connects schema, cache state and export behavior without requiring the external collector to be healthy.
Limits and common misconceptions
A Flow Monitor is not globally active just because it exists in configuration. Without interface attachment it collects nothing, and attachment on the wrong direction can make legitimate traffic invisible. Cache size is not equivalent to current session count because entries are shaped by key fields and aging timers. Clearing a cache is state-changing and destroys useful historical evidence, so record its state before clearing during diagnosis. Exporter failure does not necessarily stop local cache collection, and local cache health does not show exported records are usable downstream. Treat monitor cache state as device-local observation, not end-to-end telemetry assurance.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Create the monitor after the record is defined, bind the intended record, add the exporter when off-box telemetry is required, and adjust cache timeout behavior only for a clear operational reason. Short inactive timers can produce timely records but raise export churn; long timers reduce churn but delay visibility of completed conversations. Apply the monitor to interfaces and direction deliberately, avoiding duplicate observation points unless duplicate visibility is intended and understood. In routed designs, consider whether ingress observation before a transformation or egress observation after a policy/NAT/tunnel action is the desired evidence point. Document monitor attachment with the record name so later operators know both what is measured and where it is measured.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Assurance → Flexible NetFlow → Flow Monitor. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Quick lookup tables
Flow Monitor · operational reference
Compact state and interpretation boundaries for fast lookup.
| Monitor component | Meaning |
|---|---|
| Record binding | Schema used to classify packets |
| Cache | Runtime flow state and counters |
| Exporter binding | Off-box delivery path |
| Interface + direction | Actual observation point |