13-27
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 13 Configuring CEF for PFC2
Configuring NetFlow Statistics
Clearing All NetFlow Statistics
To clear all NetFlow IP and IPX statistics, perform this task in privileged mode:
This example shows how to clear all NetFlow statistics:
Console> (enable)
clear mls statistics entry all
All MLS IP and IPX entries cleared.
Console> (enable)
Clearing NetFlow IP Statistics
The
clear mls statistics entry ip
command clears NetFlow IP statistics. Use the
all
keyword to clear all
NetFlow IP statistics. The
destination
and
source
keywords specify the source and destination IP
addresses. The destination and source
ip_addr_spec
can be a full IP address or a subnet address in the
format
ip_subnet_addr
,
ip_addr/subnet_mask
, or
ip_addr/subnet_mask_bits.
The
flow
keyword specifies the following additional flow information:
•
Protocol family (
protocol
)—Specify
tcp
,
udp
,
icmp
, or a decimal number for other protocol
families. A value of zero (0) for
protocol
is treated as a wildcard (unspecified options are treated as
wildcards).
•
TCP or UDP source and destination port numbers (
src_port
and
dst_port
)—If the protocol you
specify is TCP or UDP, specify the source and destination TCP or UDP port numbers. A value of
zero (0) for
src_port
or
dst_port
is treated as a wildcard (unspecified options are treated as
wildcards). For other protocols, set the
src_port
and
dst_port
to 0, or no entries will clear.
To clear statistics for a NetFlow table IP entry, perform this task in privileged mode:
This example shows how to clear statistics for NetFlow table entries with destination IP address
172.20.26.22:
Console> (enable)
clear mls statistics entry ip destination 172.20.26.22
MLS IP entry cleared
Console> (enable)
This example shows how to clear statistics for NetFlow table entries with destination IP address
172.20.22.113, TCP source port 1652, and TCP destination port 23:
Console> (enable)
clear mls statistics entry destination 172.20.26.22 source 172.20.22.113
flow tcp 1652 23
MLS IP entry cleared
Console> (enable)
Task
Command
Clear all NetFlow statistics.
clear mls statistics entry all
Task
Command
Clear statistics for a NetFlow table IP
entry.
clear mls statistics entry ip
[
destination
ip_addr_spec
]
[
source
ip_addr_spec
] [
flow
protocol src_port dst_port
]
[
all
]