cache
entries

To configure the
number of entries in the monitor map flow cache, enter the
cache
entries command in flow monitor map configuration mode. To remove a
configured number of entries and return the cache to the default configuration,
use the
no form of this command.

cacheentriesnumber

nocacheentriesnumber

Syntax Description

number

Number of
entries in the flow cache. Replace the
number argument with the number of flow entries allowed in
the flow cache. Range is from 4096 through 1000000.

Command Default

number: 65535

Command Modes

Flow monitor map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to configure the number of entries in the monitor map flow cache to be
10000:

cache
permanent

To disable the
removal of entries from the monitor map flow cache, enter the
cache
permanent command in flow monitor map configuration mode. To re-enable
the removal of entries from the flow cache, use the
no form of this command.

cachepermanent

nocachepermanent

Syntax Description

This command has no keywords or arguments.

Command Default

The removal of
entries from the monitor map flow cache is enabled.

Command Modes

Flow monitor map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to disable the removal of entries from the monitor map flow cache:

cache
timeout

To configure the
active, inactive, and update flow cache timeout, enter the
cache
timeout command in flow monitor map configuration mode. To remove the
configured timeout value and return the cache to its default timeout value, use
the
no form of this command.

cachetimeout
{ active | inactive | update }
timeout_value

nocachetimeout
{ active | inactive | update }
timeout_value

Syntax Description

active

Specifies
the active flow timeout.

inactive

Specifies
the inactive flow timeout.

update

Specifies
the update timeout.

timeout_value

Timeout
value for the specified keyword (active,
inactive, or
update), in seconds. Range is from 1 through 604800.

Command Default

For active timeout,
the default value is 1800 seconds.

For inactive
timeout, the default value is 15 seconds.

For update timeout,
the default value is 1800 seconds.

Command Modes

Flow monitor map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Note

The
inactive timeout value should be smaller than the
active timeout value. The
update keyword is used for permanent caches only. It specifies the
timeout value that is used to export entries from permanent caches. In this
case, the entries are exported but remain the cache.

Task ID

Task ID

Operations

netflow

read,
write

Examples

This example shows
how to set the active timeout for the monitor map cache to 200,000 seconds:

Syntax Description

fem-name

(Optional)
Flow exporter name.

restart

Exports all
of the current templates to the collector.

statistics

Clears the
exporter statistics.

locationnode-id

Identifies
the node whose flow exporter statistics you want to clear, or whose flow
exporter statistics collector you want to restart. The
node-id argument is expressed in the
rack/slot/module notation.

Command Default

No default behavior
or values

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Syntax Description

(Optional)
Forces the export of flow records on flushing the cache on the specified node.

statistics

(Optional)
Clears cache statistics on a specific node.

locationnode-id

Node whose
flow monitor you want to clear. The
node-id argument is expressed in the
rack/slot/module notation.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read,
write

Examples

This example shows
how to clear the cache-related flow records on a specific node:

Related Commands

clear flow platform
producer statistics location

To clear statistics
collected by the NetFlow producer, use the
clear flow
platform producer statistics location command in
EXEC mode.

clearflowplatformproducerstatisticslocationnode-id

Syntax Description

node-id

Node on
which to clear statistics collected by the NetFlow producer. The
node-id is expressed in the
rack/slot/module notation.

Note

Enter the
show
platform command to see the location of all nodes installed
in the router.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to clear statistics collected by the NetFlow producer:

destination

To configure the
collector export destination, enter the
destination command in flow exporter map configuration mode. To remove a
configured export destination, use the
no form of this command.

destinationhostname_or_IP_address
[
vrfvrf_name]

nodestinationhostname_or_IP_address
[
vrfvrf_name]

Syntax Description

hostname_or_IP_address

Specify the export
destination for the current flow exporter map. Enter the hostname or
destination IP address in the
A.B.C.D format.

vrfvrf_name

(Optional) Specify the name of the VRF that is used to reach export destination. This is an optional keyword. If the vrf keyword is specified, then the destination is searched in the VRF that is specified (vrf_name). If the vrf keyword is not specified then, the destination is searched in the default routing table.

Command Default

None

Command Modes

Flow exporter map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to configure the flow exporter map export destination to be a specific IP
address:

Related Commands

dscp

To configure the
differentiated services codepoint (DSCP) value for export packets, enter the
dscp command in flow exporter map configuration mode. To remove a
configured DSCP value, use the
no form of this command.

dscpdscp_value

nodscpdscp_value

Syntax Description

dscp_value

Specifies
the DSCP value for export packets. Replace
dscp_value with a number. Range is from 0 through 63.

Command Default

None

Command Modes

Flow exporter map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to configure the DSCP value for export packets to be 30:

Related Commands

exporter

To associate a flow
exporter map with the current flow monitor map, enter the
exporter command in flow monitor map configuration mode. To remove an
associated flow exporter map from a flow monitor map, use the
no form of this command.

exportermap_name

noexportermap_name

Syntax Description

map_name

Name of the
flow exporter map you want to associate with the current flow monitor map. The
exporter map name can be a maximum of 32 characters.

Note

A single
flow monitor map supports up to 8 exporters.
Only the first five will be
used.

Command Default

None

Command Modes

Flow monitor map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to associate a flow exporter map called “fem_1” with the current flow
monitor map:

flow

To specify a flow
monitor map and a sampler map for the packets on an interface, use the
flow command in interface configuration mode. To remove a
configured flow monitor map, use the
no form of this command.

Specifies
the name of the flow monitor map you want to specify for IPv4, IPv6, or MPLS
packets.

samplername

Name of the
sampler map you want to apply to the flow monitor map.

egress

Applies the
flow monitor map on outgoing packets.

ingress

Applies the
flow monitor map on incoming packets.

Command Default

None

Command Modes

Interface configuration

Command History

Release

Modification

Release 3.9.1

This
command was introduced.

Release 4.3.1

The
support for NetFlow over Bridge-group Virtual Interface was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read,
write

Examples

This example shows how to
enable IPv4 NetFlow on a Bridge-group virtual interface, and then apply the
flow monitor map on incoming and outgoing IPv4 packets:

Related Commands

flow
exporter-map

To create a flow
exporter map and enter flow exporter map configuration mode, use the
flow
exporter-map command in
global
configuration mode. To
remove a configured flow exporter map, use the
no form of this command.

flowexporter-mapfem-name

noflowexporter-mapfem-name

Syntax Description

fem-name

Creates a
new exporter map name, or specifies the name of an existing exporter map.

Command Default

None

Command Modes

Global configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

When you issue the
flow
exporter-mapfem-name command in
global
configuration mode, the
CLI prompt changes to “config-fem,” indicating that you have entered the flow
exporter map configuration submode.

In this sample
output, the question mark (?) online help function displays all the commands available
under flow exporter map configuration submode:

RP/0/RSP0/CPU0:router(config)# flow exporter-map map1RP/0/RSP0/CPU0:router(config-fem)# ?RP/0/RSP0/CPU0:routerconfig-fem)#?
clear Clear the uncommitted configuration
commit Commit the configuration changes to running
describe Describe a command without taking real actions
destination Export destination configuration
do Run an exec command
dscp Specify DSCP value for export packets
exit Exit from this submode
no Negate a command or set its defaults
pwd Commands used to reach current submode
root Exit to the global configuration mode
show Show contents of configuration
source Source interface
transport Specify the transport protocol for export packets
version Specify export version parameters

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to create a flow exporter map called “map1,” and then enter the flow
exporter map configuration submode for that map:

Related Commands

flow
monitor-map

To create and
configure a flow monitor map and enter flow monitor map configuration submode,
use the
flow
monitor-map command in
global
configuration mode. To
remove a configured flow monitor map, use the
no form of this command:

flowmonitor-mapmap_name

noflowmonitor-mapmap_name

Syntax Description

map_name

New monitor
map name, or specifies the name of an existing monitor map. The monitor map
name can be a maximum 32 characters.

Command Default

None

Command Modes

Global configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

When you issue the
flow
monitor-mapmap_name command in
global
configuration mode, the CLI
prompt changes to “config-fmm,” indicating that you have entered the flow
monitor map configuration submode. In the following sample output, the question
mark (?) online help function displays all the commands available
under flow monitor map configuration submode:

RP/0/RSP0/CPU0:router(config)# flow monitor-map map1RP/0/RSP0/CPU0:router(config-fmm)#?
cache Specify flow cache attributes
clear Clear the uncommitted configuration
commit Commit the configuration changes to running
describe Describe a command without taking real actions
do Run an exec command
exit Exit from this submode
exporter Specify flow exporter map name
no Negate a command or set its defaults
pwd Commands used to reach current submode
record Specify a flow record map name
root Exit to the global configuration mode
show Show contents of configuration

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to enter flow monitor map configuration mode for a monitor map called
“map1:”

options

To export the tables
in the options template and specify export timeout values, enter the
options command in flow exporter map version configuration mode. To
return the options template to its default configuration values, use the
no form of this command.

options
{ interface-table | sampler-table }
[ timeoutseconds ]

nooptions
{ interface-table | sampler-table }
[ timeoutseconds ]

Syntax Description

interface-table

Export the
interface table.

sampler-table

Exports the
sampler table.

timeoutseconds

Specifies
the export timeout value. Replace
seconds with the export timeout value. Range is from 1 through
604800 seconds.

Command Default

Without options
command, the default value for timeout is 0 seconds, which means that the
template options are not exported by default. Where as when options command is
used without mentioning any timeout, default timeout is 1800 seconds.

Command Modes

Flow exporter map version configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to export the timeout in the interface table to the options template.

Related Commands

random 1
out-of

To configure the
packet sampling interval for a monitor map, use the
random 1
out-of command in sampler map configuration submode. To remove a
configured sampling interval and return to the default sampling interval, use
the
no form of this command. The limit of sampling rate values per
line card per direction is 4, and limit of total samplers per line card per
direction is 16.

random1out-ofnumber_of_packets

norandom1out-ofnumber_of_packets

Syntax Description

number_of_packets

Sampling
interval in units of packets. Replace the
number_of_packets argument with a number. Range is from 1 through 65535
units.

Command Default

There is no default
value to
number_of_packets. However, for optimal performance, the recommended value for
number_of_packets is 10000.

Command Modes

Sampler map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to configure the sampler map to randomly sample 1 out of every 10 packets:

Command Default

Command Modes

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Release 4.2.0

The
destination-tos keyword was added to support
destination-based Netflow accounting.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

The BGP AS is not collected unless the
bgpattribute download command is configured.

The
record ipv4 command exports the BGP AS information in the
following format:

bgpSourceAsNumber

bgpDestinationAsNumber

The
record ipv4 peer-as command exports the adjacent BGP AS
information in the following format:

record ipv6

To configure the
flow record map name for IPv6, use the
record
ipv6 command in flow monitor map configuration mode. To remove the
configured name from a flow record, use the
no form of this command.

recordipv6

norecordipv6

Syntax Description

peer-as

Records peer AS.

Command Default

The default is that originating AS numbers are recorded.

Command Modes

Flow monitor map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to configure the flow record map name for IPv6:

Syntax Description

(Optional)
Collects IPv4 fields in the MPLS-aware Netflow when the payload of the MPLS
packet has IPv4 fields. It also collects MPLS traffic with no IPv4 payload, but
the IPv4 fields are set to zero.

ipv6-fields

(Optional)
Collects IPv6 fields in the MPLS-aware Netflow when the payload of the MPLS
packet has IPv6 fields. It also collects MPLS traffic with no IPv6 payload, but
the IPv6 fields are set to zero.

ipv4-ipv6-fields

(Optional)
Collects IPv4 and IPv6 fields in the MPLS-aware Netflow when the payload of the
MPLS packet has either IPv4 fields or IPv6 fields. It also collects MPLS
traffic with no IPv4 or IPv6 payload, but those fields are set to zero.

labelsnumber

(Optional)
Configures the number of labels that are used in hashing. The
number
argument is the number of labels that are used in hashing. The range is from 1
to 6.

Command Default

The default is no
IPV4 fields and six labels.

Command Modes

Flow monitor map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

In
Cisco IOS XR software, you can have only one MPLS flow monitor running on an interface
at a time. If you apply an additional MPLS flow monitor to the interface, the
new flow monitor overwrites the existing one.

You can configure
the MPLS flow monitor to collect IPv4 fields, IPv6 fields, or both types of
fields.

Task ID

Task ID

Operations

netflow

read,
write

Examples

This configuration
allows you to collect only MPLS fields. No payload information is collected.

sampler-map

To enter sampler map
configuration submode for a specific monitor map, use the
sampler-map command in
global configuration mode. To remove a configured sampler map, use the
no form of this command.

sampler-mapmap_name

nosampler-mapmap_name

Syntax Description

map_name

Name of the
sampler map you want to configure. The sampler map name can be a maximum 32
characters.

Command Default

None

Command Modes

Global configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

When you issue the
sampler-mapmap_name command in
global
configuration mode, the CLI
prompt changes to “config-sm,” indicating that you have entered the sampler map
configuration submode. In this sample output, the question mark (?) online help function displays all the commands available
under sampler map configuration submode:

RP/0/RSP0/CPU0:router(config)# sampler-map testRP/0/RSP0/CPU0:router(config-sm)# ?
clear Clear the uncommitted configuration
commit Commit the configuration changes to running
describe Describe a command without taking real actions
do Run an exec command
exit Exit from this submode
no Negate a command or set its defaults
pwd Commands used to reach current submode
random Use random mode for sampling packets
root Exit to the global configuration mode
show Show contents of configuration

These restrictions
prevent the NetFlow processes from using up all of the available CPU:

NetFlow supports a policer
rate of 35,000 packets per second per direction for each individual line card.

NetFlow supports a policer
rate of 50,000 packets per second per direction for each individual line card
if Sampled NetFlow (SNF) is enabled in one direction (ingress or egress). Note
that this limit does not apply if SNF is enabled in both directions. If SNF is
enabled in both directions, then NetFlow supports 25,000 packets per second per
direction for each individual line card.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to use the
sampler-map command to enter sampler map configuration submode for the
monitor map called “map1:”

Syntax Description

Location
where the cache resides. The
node-id argument is expressed in the
rack/slot/module notation.

Note

Enter the
show
platform command to see the location of all nodes installed
in the router.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Name of
the flow monitors associated with the specified flow exporter map.

Status

Status of
the exporter.

Normal—Exporter is active
and can export packets.

Disabled—Exporter cannot
send out packets because the collector is unreachable or the configuration is
incomplete.

Destination

Export
destination address the current flow exporter map.

Flows
exported

Flows
exported, in bytes.

Flows
dropped

Flows
dropped, in bytes.

Templates
exported

Templates
exported, in bytes.

Templates
dropped

Templates
dropped, in bytes.

Option
data exported

Option
data exported, in bytes.

Option
data dropped

Option
data dropped, in bytes.

Option
templates exported

Option
templates exported, in bytes.

Option
templates dropped

Option
templates dropped, in bytes.

Packets
exported:

Packets
exported, in bytes.

Packets
dropped

Packets
dropped, in bytes.

Average
export rate over interval of last:

Average
export rate, in bytes/pkts. Information is displayed for intervals of the last
hour, minute, and second.

show flow
exporter-map

To display flow
exporter map information for a specific node, enter the
show flow
exporter-map command in
EXEC mode.

showflowexporter-map [name]

Syntax Description

name

Name of the
exporter map whose information you want to display.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Enter
the
destination-address keyword followed by the
? command to see a complete list of possible match
criteria.

tosmatch-options

Compares
fields and matches them based on the type of service value. Range is from 0
through 255. Possible match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
tos keyword followed by the
? command to see a complete list of possible match
criteria.

protocolmatch-options

Compares
fields and matches them based on the protocol value. Possible match options
are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
protocol keyword followed by the
? command to see a complete list of possible match
criteria.

layer4

Compares
Layer 4 fields and matches them based on specific criteria. You can specify
match criteria for any of the following Layer 4 fields:

destination-port-overloaded

source-port-overloaded

tcp-flags

Note

Enter
the
layer4 keyword followed by the
? command to see a complete list of possible Layer 4
fields to compare and match.

destination-port-overloaded

Compares
fields and matches them based on the
destination-port-overloaded value. The destination port is matched if the
protocol specified for that port is TCP or UDP.

Possible
match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
destination-port-overloaded keyword followed by the ? command to see a
complete list of possible match criteria.

source-port-overloaded

Compares
fields and matches them based on the
source-port-overloaded value.

The
source port is matched if the protocol specified for that port is one of the
following:

TCP—Range is from 0 through 65535.

UDP—Range is from 0 through 65535.

ICMP—Type or code is in range from 0 through 255.

IGMP—Type is in range from 0 through 255.

Possible
match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

NoteEnter the
source-port-overloaded keyword followed by the
? command to see a complete list of possible match
criteria.

tcp-flagsmatch-flags-options

Specifies TCP flags, as follows:

all—Match all of the fields

any—Match any of the fields

none—Match none of the fields.

Note

Enter
the
tcp-flags keyword followed by the
? command to see a complete list of possible match
criteria.

bgp

Compares
BGP fields and matches them based on specific criteria. You can specify match
criteria for any of the following BGP fields:

destination-as—Destination as.

source-as—Source as.

source-asmatch-options

Compares
and matches the BGP autonomous system number of the destination address.

Possible
match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
source-as keyword followed by the
? command to see a complete list of possible match
criteria.

destination-asmatch-options

Compares
and matches the BGP autonomous system number of the source address. Possible
match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
destination-as keyword followed by the
? command to see a complete list of possible match
criteria.

timestamp

Specifies the time stamp for which to compare and match the
specified criteria. Enter the
first keyword or the
last keyword to specify the time stamp whose criteria you
want to compare.

firstmatch-options

Compares
fields from the first time stamp and matches them based on the match-options
value. Possible match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
first keyword followed by the
? command to see a complete list of possible match
criteria.

lastmatch-options

Compares
fields from the last time stamp and matches them based on the match-if-options
value. Possible match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
last keyword followed by the
? command to see a complete list of possible match
criteria.

counters

Specifies the counters for which to compare and match the
specified criteria. Enter the
byte keyword or the
packets keyword to specify the counters whose criteria you
want to compare.

bytematch-options

Compares
bytes counter fields and matches them based on the match-options value.
Possible match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
byte keyword followed by the
? command to see a complete list of possible match
criteria.

packetsmatch-options

Compares
packets counter fields and matches them based on the match-options value.
Possible match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Note

Enter
the
byte keyword followed by the
? command to see a complete list of possible match
criteria.

misc

Specifies miscellaneous fields for which to compare and match
the specified criteria. Enter the
forwarding-status keyword or the
direction keyword to specify the field whose criteria you want
to compare.

forwarding-statusmatch-options

Compares
forwarding status fields and matches them based on the match-options value.
Possible match options are:

eq—Match if equal to field value.

gt—Match if greater than field value.

lt—Match if less than field value.

neq—Match if not equal to field value.

range—Match if within the range of field values.

Enter
the
forwarding-status keyword followed by the
? command to see a complete list of possible match
criteria.

directionmatch-dir-options

Compares
information about the direction of the flow and matches it based on the
match-options value. Possible match options are:

eq—Match if equal to field value.

neq—Match if not equal to field value.

Note

Enter
the
direction keyword followed by the
? command to see a complete list of possible match
criteria.

To sort
flow record information according to a particular field:

monitor-name

Flow
monitor map whose details you want to display.

cache

Displays
details about the flow monitor cache.

sort

Determines sorting criteria for the
show flow monitor command display.

ipv4

Specifies sorting criteria for one of the following IPv4 fields:

destination-address

source-address

protocol

tos

Note

Enter
the
ipv4 keyword followed by the
? command to see a complete list of possible sorting
criteria.

ipv6

Specifies sorting criteria for one of the following IPv6 fields:

destination-address

source-address

protocol

tos

Note

Enter
the
ipv6 keyword followed by the
? command to see a complete list of possible sorting
criteria.

source-address

Displays
IPv4 or IPv6 information for the source address according to the specified
sorting criteria. Possible sorting options are:

top—Displays top cache entries.

bottom—Displays bottom cache entries.

Note

Enter
the
source-address keyword followed by the
? command to see a complete list of possible sorting
criteria.

destination-address

Displays
IPv4 or IPv6 information for the destination address according to the specified
sorting criteria. Possible sorting options are:

top—Displays top cache entries.

bottom—Displays bottom cache entries.

Note

Enter
the
destination-address keyword followed by the
? command to see a complete list of possible sorting
criteria.

tos

Displays
IPv4 type of service information according to the specified sorting criteria.
Possible sorting options are:

top—Displays top cache entries.

bottom—Displays bottom cache entries.

Note

Enter
the
tos keyword followed by the
? command to see a complete list of possible sorting
criteria.

Enter
the
forwarding-status keyword followed by the
? command to see a complete list of possible sorting
criteria.

direction

Displays
information about the direction of the flow according to the specified sorting
criteria. Possible sorting options are:

top—Displays top cache entries.

bottom—Displays bottom cache entries.

Note

Enter
the
direction keyword followed by the
? command to see a complete list of possible sorting
criteria.

top

Displays
top cache entries. Replace records with the number of records you want to
display.

Note

You
can follow the
top keyword with the optional
entries argument to specify the number of records to
display.

bottom

Displays
bottom cache entries. Replace records with the number of records you want to
display.

Note

You
can follow the
bottom keyword with the optional
entries argument to specify the number of records to
display.

entries

Number
of records to display. Range is from 1 through 1000.

To
include or exclude one or more fields in the show flow monitor command output:

monitor-name

Flow
monitor map whose details you want to display.

cache

Displays
details about the flow monitor cache.

include

Includes
the specified fields in the display output. Enter the
include keyword, followed by the keyword or keywords that
specify the fields to include.

Note

To see
a list of fields that can be included, enter the
include keyword, followed by the ? command.

exclude

Excludes
the specified fields in the display output. Enter the
exclude keyword, followed by the keyword or keywords that
specify the fields to exclude.

Note

To see
a list of fields that can be excluded, enter the
exclude keyword, followed by the ? command.

ipv4

Includes
or excludes one of the following IPv4 fields in the command output:

destination-address

source-address

protocol

tos

Note

Enter
the
ipv4 keyword followed by the
? command to see a complete list of possible sorting
criteria.

ipv6

Includes
or excludes one of the following IPv6 fields in the command output:

destination-address

flow-label

option-headers

source-address

protocol

tos

Note

Enter
the
ipv6 keyword followed by the
? command to see a complete list of possible sorting
criteria.

source-address

Includes
or excludes IPV4 or IPV6 information for the source address in the command
output.

destination-address

Includes
or excludes IPV4 or IPV6 information for the destination address in the command
output.

flow-label

Includes
or excludes information about the IPv6 flow label in the command output. The
flow label is the 20-bit flow label id present in every IPv6 packet header.

option-headers

Includes
or excludes IPV6 information for the option headers in the command output. The
option header is a bit mask that indicates which options headers are present in
the IPv6 header.

tos

Includes
or excludes IPV4 type of service information in the command output.

tc

Includes
or excludes IPV6 traffic class information in the command output.

protocol

Includes
or excludes IPV4 or IPV6 protocol information in the command output.

mpls

Includes
or excludes one of the following MPLS fields in the command output:

label-2

label-3

label-4

label-5

label-6

top-label

Note

Enter
the
mpls keyword followed by the
? command to see a complete list of possible sorting
criteria.

label-2

Includes
or excludes MPLS information for the second label in the MPLS label stack.

label-3

Includes
or excludes MPLS information for the third label in the MPLS label stack.

label-4

Includes
or excludes MPLS information for the fourth label in the MPLS label stack.

label-5

Includes
or excludes MPLS information for the fifth label in the MPLS label stack.

label-6

Includes
or excludes MPLS information for the sixth label in the MPLS label stack.

top-label

Includes
or excludes MPLS information for the top label in the MPLS label stack.

layer4

Includes
or excludes one of the following the following Layer 4 fields in the command
output:

source-port-overloaded

destination-port-overloaded

Note

Enter
the
layer4 keyword followed by the
? command to see a complete list of possible sorting
criteria.

source-port-overloaded

Includes
or excludes source port overload information in the command output.

destination-port-overloaded

Includes
or excludes destination port overload information in the command output.

top—Displays top cache entries.

bottom—Displays bottom cache entries.

bgp

Includes
or excludes the following BGP fields in the command output:

source-as

destination-as

Note

Enter
the
bgp keyword followed by the
? command to see a complete list of possible sorting
criteria.

source-as

Includes
or excludes information about the BGP source address autonomous system number
in the command output.

destination-as

Includes
or excludes information about the BGP destination address autonomous system
number in the command output.

timestamp

Includes
or excludes information from the first or last time stamp in the command
output. Enter the
first keyword or the
last keyword to include or exclude information about a
specific time stamp.

Note

Enter
the
timestamp keyword followed by the
? command to see a complete list of possible sorting
criteria.

first

Includes
or excludes information for the first time stamp in the command output.

last

Includes
or excludes information for the first time stamp in the command output.

counters

Includes
or excludes bytes or packets counters in the command output. Follow the
counters keyword with the
byte keyword or the
packets keyword to include or exclude particular counters.

Note

Enter
the
counters keyword followed by the
? command to see a complete list of possible sorting
criteria.

bytes

Includes
or excludes bytes counter information in the command output.

packets

Includes
or excludes packets counter information in the command output.

misc

Includes
or excludes information for miscellaneous fields in the command output. Follow
the
misc keyword with the
forwarding-status keyword or the
direction keyword to specify the field you want to include or
exclude.

Note

Enter
the
misc keyword followed by the
? command to see a complete list of possible sorting
criteria.

forwarding-status

Includes
or excludes forwarding status information in the command output.

direction

Includes
or excludes information about the direction of the flow in the command output.

top

Includes
or excludes top cache entries in the command output. Replace records with the
number of
records you want to display.

bottom

Includes
or excludes bottom cache entries. Replace records with the number of
records you want to display

entries

Number
of records to display. Range is from 1 through 1000.

To
display summarized flow record statistics:

monitor-name

Flow
monitor map whose details you want to display.

cache

Displays
details about the flow monitor cache.

summary

Displays
summarized flow monitor information only.

monitor-name

Flow
monitor map whose details you want to display.

cache

Displays
details about the flow monitor cache.

brief

Abbreviates the
show flow monitor command output.

To
display flow record information for a particular node only:

monitor-name

Flow
monitor map whose details you want to display.

cache

Displays
details about the flow monitor cache.

locationnode-id

Identifies the node whose flow exporter statistics you want to
clear, or whose flow exporter statistics collector you want to restart. The
node-id argument is expressed in the
rack/slot/module notation.

Note

Enter
the
location keyword followed by the
? command to see a complete list of possible sorting
criteria.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 4.0.0

The interface keyword options were removed.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Note

To collect
source and destination AS information, you must enable BGP on the relevant BGP
AFI/SAFI. Unless this is done, all AS numbers in the flow records are displayed
as
0.

Keep these
information in mind when using the
show flow
monitor command:

The
show flow
monitor command can include combinations of these options:

format

match

include

exclude

sort

summary

location

We do not recommend
including the
summary
option with the
sort and
format
options.

The mutually exclusive
options are
summary,
brief,
include,
and
exclude.

To see a list of fields
that can be included after a keyword, enter the
? command, as shown in this example:

show flow
monitor-map

Syntax Description

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 3.4.1

The ipv4-raw
record map name was replaced with ipv4.

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

This example shows
how to display monitor-map data for a specific flow:

show flow platform
producer statistics location

To display
statistics collected by the NetFlow producer, use the
show flow
platform producer statistics location command in
EXEC mode.

showflowplatformproducerstatisticslocationnode-id

Syntax Description

node-id

Location of
the node whose NetFlow producer statistics you want to display. The
node-id is expressed in the
rack/slot/module notation.

Note

Enter the
show
platform command to see the location of all nodes installed
in the router.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

This example shows
how to display statistics collected by the NetFlow producer for the CPU card in
slot 0:

Number of
packets that the producer could not enqueue to the NetFlow server because the
server input ring was full.

Drops
(other)

Number of
packets that the producer could not enqueue to the NetFlow server due to errors
other than the server input ring being full.

Unknown
Ingress Packets

Number of
unrecognized packets received from the remote end that were dropped.

Unknown
Egress Packets

Number of
packets transmitted to the remote end that were dropped because they were not
recognized by the remote end.

Worker
waiting

Number of
times that the producer needed to use the server.

Note

This
field is strictly informational and does not indicate any error.

SPP Packets

Number of sequenced packet protocol (SPP) packets transmitted
to the remote end.

Flow Packets

Number of flow packets transmitted to the remote end.

Flow Packets per SPP Frame

Number of flow packets per SPP frame transmitted to the remote
end.

show flow platform nfea sampler

To display sampler map information, enter the show sampler-map
command in EXEC mode.

showflowplatformnfeasampler
[ detail | location ]

Syntax Description

detail

Displays flow platform nfea sampler detail information

location

Displays the node number

Command Default

None

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display flow platform nfea samp detail :

Syntax Description

Command Default

None

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display flow map platfrom information:

show flow platform nfea sp location

Syntax Description

Specifies the location node number. The node-id
argument is expressed in the rack/slot/module
notation.

Command Default

Default value for the output when monitor is not configured is all zeros.

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display sampling profile information:

show flow platform nfea policer np

Syntax Description

node-id

Identifies the location node number.

Command Default

The Default values depends on how many NPs are programmed with the netflow, for example,
if the interface is configured on only one NP with netflow, the output will be 100,000;
if more NPs are configured, the output will be divided by the number of NPs; if no
netflow is configured on a particular NP, the output is 0

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display sampler map information for a router:

show flow platform nfea bundle

Syntax Description

locationnode-id

The node-id is expressed in the rack/slot/module notation.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Command Default

Default values should be all zeros, when no interface is configured with monitor in the
location.

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Syntax Description

Specifies the location node number. The node-id
argument is expressed in the rack/slot/module
notation

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 4.0.0

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display the checkpoint information for 0/1/CPU0:

Syntax Description

Specifies the location node number. The node-id argument is expressed in the
rack/slot/module notation

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 4.0.0

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display all flow object information for location
0/1/CPU0:

Interface type. For more information, use the question mark
(?) online help function.

interface-path-id

Physical interface or virtual interface.

Note

Use the showinterfaces command to see a list of all interfaces
currently configured on the router.

For more information about the syntax for the router, use the question mark
(?) online help function.

Command Default

None

Command Modes

EXEC

Command History

Release

Modification

Release 4.0.0

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display datapath information for all interfaces:

show flow trace platform producer location

To trace the information for all or specified netflow processes on all or specified
location.

showflowtraceplatformproducerlocation-id

Syntax Description

location-id

Displays the location

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display sampler map information for a router:

show flow trace ea location

Syntax Description

node-id

The node-id is expressed in the
rack/slot/module notation.

Command Modes

EXEC

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read

Examples

The following example shows how to display sampler map information for a router:

RP/0/RSP0/CPU0:router# show flow trace ea location 0/0/CPU0

source
(NetFlow)

To configure a
source interface for the current collector, use the
source command in flow exporter map configuration mode. To remove a
configured source interface, use the
no form of this command.

sourcetypeinterface-path-id

nosourcetypeinterface-path-id

Syntax Description

type

Interface
type. For more information, use the question mark (?) online help function.

interface-path-id

Physical
interface or virtual interface.

Note

Use the
showinterfaces command to see a list of all interfaces currently
configured on the router.

For more
information about the syntax for the router, use the question mark (?) online help function.

Command Default

None

Command Modes

Flow exporter map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

For the
interface-path-id argument,
use the following guidelines:

If specifying T1/E1/DS0
physical interfaces, the naming notation is
rack/slot/module/port/t1-num:

channel-group-number. If specifying other physical interface
types, the naming notation is
rack/slot/module/port.
The slash between values is required as part of the notation. An
explanation of each component of the naming notation is as follows:

template
(NetFlow)

To configure the
export timeout value for the data and options templates, enter the
template command in flow exporter map version configuration mode. To
remove a configured template export timeout value, use the
no form of this command.

template
[ data | options ]
timeoutseconds

notemplate
[ data | options ]
timeoutseconds

Syntax Description

data

(Optional)
Specifies the data template.

options

(Optional)
Specifies the options template.

timeoutseconds

Configures
the timeout value for the specified template, or for both the data and options
templates. Replace
seconds with the export timeout value. Range is from 1 through
604800 seconds.

Command Default

Default timeout
value for data and options template is 1800 seconds.

Command Modes

Flow exporter map version configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to configure the export timeout value for the data template to be 300
seconds:

transport
udp

To configure the
destination port for User Datagram Protocol (UDP) packets, enter the
transport
udp command in flow exporter map configuration mode. To remove a
configured destination port, use the
no form of this command.

transportudpport_value

notransportudpport_value

Syntax Description

port_value

Destination
port for UDP packets. Replace
port with the destination port value. Range is from 1024
through 65535.

Command Default

None

Command Modes

Flow exporter map configuration

Command History

Release

Modification

Release 3.9.1

This command was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to configure the destination port for UDP packets:

version v9

To enter flow
exporter map version configuration submode so that you can configure export
version parameters, enter the
version
v9 command in flow exporter map configuration mode. To remove the
current export version configuration and return to the default configuration,
use the
no form of this command.

versionv9

noversionv9

Syntax Description

This command has no keywords or arguments.

Command Default

None

Command Modes

Flow exporter map configuration

Command History

Release

Modification

Release 3.9.1

This command
was introduced.

Usage Guidelines

To use this command, you must
be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command,
contact your AAA administrator for assistance.

When you issue the
version
v9 command, the CLI prompt changes to “config-fem-ver,”
indicating that you have entered flow exporter map version configuration
submode. In this sample output, the question mark (?) online help function displays all the commands available
under flow exporter map version configuration submode:

RP/0/RSP0/CPU0:router(config-fem)# version v9RP/0/RSP0/CPU0:router(config-fem-ver)#?
clear Clear the uncommitted configuration
commit Commit the configuration changes to running
describe Describe a command without taking real actions
do Run an exec command
exit Exit from this submode
no Negate a command or set its defaults
options Specify export of options template
pwd Commands used to reach current submode
root Exit to the global configuration mode
show Show contents of configuration
template Specify template export parameters

Task ID

Task ID

Operations

netflow

read, write

Examples

This example shows
how to enter flow exporter map version configuration submode: