To display flow
monitor cache data in various formats, enter the
show flow
monitor
command in
XR EXEC mode.
To match on Access
Control Lists (ACLs) and one or more fields:
show flow monitor monitor-name cache match {ipv4 {acl name | source-address match-options | destination-address match-options | protocol match-options | tos match-options} | ipv6 {acl name | source-address match-options | destination-address match-options | protocol match-options | tc match-options} | layer4 {source-port-overloaded match-options | destination-port-overloaded match-options | tcp-flags match-flags-options} | bgp {source-as match-options | destination-as match-options} | interface {ingress match-if-options} | timestamp {first match-options | last match-options} | counters {byte match-options | packets match-options} | misc {forwarding-status match-options | direction match-dir-options}}
To sort flow
record information according to a particular field:
show flow monitor monitor-name cache sort {ipv4 {source-address | destination-address | tos | protocol} | ipv4 {source-address | destination-address | tc | protocol} | mpls {label-2 | label-3 | label-4 | label-5 | label-6 | label-type | prefix | top-label} | layer4 {source-port-overloaded | destination-port-overloaded} | bgp {source-as | destination-as} | timestamp {first | last} | counters {bytes | packets} | misc {forwarding-status | direction} {top | bottom} [entries] }
To include or
exclude one or more fields in the
show flow
monitor
command output:
show flow monitor monitor-name cache {include | exclude} {ipv4 {source-address | destination-address | tos | protocol} | ipv6 {source-address | destination-address | tc | flow-label | option-headers | protocol} | mpls {label-2 | label-3 | label-4 | label-5 | label-6 | top-label} | layer4 {source-port-overloaded | destination-port-overloaded} | bgp {source-as | destination-as} | timestamp {first | last} | counters {bytes | packets} | misc {forwarding-status match-options | direction match-dir-options}}
To display
summarized flow record statistics:
show flow monitor monitor-name cache summary location node-id
To display only
key field, packet, and byte information for the flow records:
show flow monitor monitor-name cache brief location node-id
To display flow
record information for a particular node only:
show flow monitor monitor-name cache location node-id
Syntax Description
If you specified
the
show flow monitor
monitor-name cache match command to match on ACL and one or more
fields:
Syntax Description
map_name
|
Name of the
sampler map you want to configure. The sampler map name can be a maximum 32
characters.
|
This table describes the significant fields shown in the display.
Table 3. show flow monitor Field Descriptions
Field
|
Description
|
Cache summary for Flow Monitor fmm2
|
Displays general cache information for the specified flow monitor. The following information is displayed
- Cache size for the specified flow monitor map
- Current number of entries in the cache
- High watermark for this cache
- Number of flows added to the cache
- Number of flows not added to the cache
|
Ager Polls
|
Displays the following ager statistics:
- Active timeout
- Inactive timeout
- TCP FIN flag
- Watermark aged
- Emergency aged
- Counter wrap aged
- Total
|
Periodic export
|
- Counter wrap
- TCP FIN flag
|
Cache summary for Flow Monitor fmm2
|
Displays general cache information for the specified flow monitor. The following information is displayed
- Cache size for the specified flow monitor map
- Current number of entries in the cache
- High watermark for this cache
- Number of flows added to the cache
- Number of flows not added to the cache
|
Command Modes
XR EXEC mode
Command History
Release
|
Modification
|
Release 6.0
|
This command was introduced.
|
Release 24.1.1
|
This command was modified to include additional BGP information elements.
|
Usage Guidelines
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:
Task ID
Task ID
|
Operations
|
netflow
|
read
|
Examples
This example shows
how to display flow monitor data for a specific monitor map cache in the
location
0/0/CPU0
:
This example shows how to display flow monitor data for a specific monitor map cache in the location
0/0/CPU0
:
Router#show flow monitor mpls-1 cache summary location 0/0/CPU0
========== Record number: 1 ==========
LabelType : Unknown
Prefix/Length : 20.1.1.0/24
Label1-EXP-S : 16001-0-1
Label2-EXP-S : -
Label3-EXP-S : -
Label4-EXP-S : -
Label5-EXP-S : -
Label6-EXP-S : -
InputInterface : FH0/0/0/1
OutputInterface : FH0/0/0/0
ForwardStatus : Fwd
FirstSwitched : 00 08:28:52:189
LastSwitched : 00 08:28:57:649
ByteCount : 2352
PacketCount : 56
Dir : Ing
SamplerID : 1
IPV4SrcAddr : 30.1.1.1
IPV4DstAddr : 20.1.1.1
IPV4TOS : 0
IPV4Prot : udp
L4SrcPort : 2025
L4DestPort : 2500
L4TCPFlags : 0
IPV4SrcPrfxLen : 24
IPV4DstPrfxLen : 24
BGPNextHopV4 : 192.168.10.10
BGPNextHopV6 : ::
BGPSrcOrigAS : 2000
BGPDstOrigAS : 1000
IPV4NextHop : 192.168.10.10
IPV6NextHop : ::
MinimumTTL : 90
MaximumTTL : 110
InputVRFID : default
OutputVRFID : default
========== Record number: 1 ==========
LabelType : Unknown
Prefix/Length : ::/0
Label1-EXP-S : 16001-0-1
Label2-EXP-S : -
Label3-EXP-S : -
Label4-EXP-S : -
Label5-EXP-S : -
Label6-EXP-S : -
InputInterface : FH0/0/0/1
OutputInterface : FH0/0/0/0
ForwardStatus : Fwd
FirstSwitched : 00 08:27:38:692
LastSwitched : 00 08:27:47:572
ByteCount : 5580
PacketCount : 90
Dir : Ing
SamplerID : 1
IPv6SrcAddr : 50::1
IPv6DstAddr : 40::1
IPv6TC : 0
IPv6FlowLabel : 0
IPv6OptHdrs : 0x0
IPV6Prot : udp
L4SrcPort : 2025
L4DestPort : 2500
L4TCPFlags : 0
IPV6SrcPrfxLen : 64
IPV6DstPrfxLen : 64
BGPNextHopV4 : 0.0.0.0
BGPNextHopV6 : ::ffff:192.168.10.10
BGPSrcOrigAS : 2000
BGPDstOrigAS : 1000
IPV4NextHop : 192.168.10.10
IPV6NextHop : ::
MinimumTTL : 195
MaximumTTL : 205
InputVRFID : default
OutputVRFID : default