Cisco Nexus 7000 Series Reference Manual page 111

Nx-os system management command reference
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

C Commands
Usage Guidelines
The Flexible NetFlow commands that start with collect are used to configure nonkey fields for the flow
monitor record and to captures the values in the fields for the flow created with the record. The values
in nonkey fields are added to flows to provide additional information about the traffic in the flows. A
change in the value of a nonkey field does not create a new flow. In most cases, the values for nonkey
fields are taken from only the first packet in the flow.
Use the collect routing source as [peer] command to collect the 16-bit AS number based on a lookup
of the router's routing table using the source IP address. The optional peer keyword provides the
expected next network, not the originating network.
The the 16-bit AS number is based on how packets are routed back from this router and the value might
Note
not be accurate for asymmetrical routes.
Use the collect routing destination as [peer] command to collect the 16-bit AS number based on a
lookup of the router's routing table using the destination IP address. The optional peer keyword provides
the expected next network, not the destination network.
Use the collect routing source traffic-index command to collect the traffic index field based on the
source AS for this flow. The traffic-index field is a value that is propagated through BGP.
Use the collect routing forwarding-status command to collect a field to indicate if the packets were
successfully forwarded. The field is in two parts and may be up to 4 bytes in length. At this time, only
the status field is used:
+-+-+-+-+-+-+-+-+
| S | Reason
| t | codes
| t | flags
| u |
| s |
+-+-+-+-+-+-+-+-+
0 1 2 3 4 5 6 7
Status:
00b=Unknown, 01b = Forwarded, 10b = Dropped, 11b = Consumed
This command does not require a license.
Examples
This example shows how to configure the 16-bit AS number based on a lookup of the router's routing
table using the source IP address as a nonkey field and collects the 16-bit AS number value:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect routing source as
This example shows how to configure the 16-bit AS number based on a lookup of the router's routing
table using the destination IP address as a nonkey field and collects the 16-bit AS number value:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect routing destination as
This example shows how to configure the value in the traffic index field based on the source AS for a
flow as a nonkey field and collects the value in the traffic index field value:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect routing source traffic-index
OL-25806-03
|
|
| a | or
|
|
|
|
Cisco Nexus 7000 Series NX-OS System Management Command Reference
collect routing
83

Advertisement

Table of Contents
loading

Table of Contents