C Commands
collect interface
80
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
collect interface
To configure the input or output interface as a nonkey field and collect the values for a Flexible NetFlow
flow record, use the collect
interface command. To disable the use of the input or output interface as a
nonkey field for a Flexible NetFlow flow record, use the no form of this command.
collect interface {input | output}
no collect interface {input | output}
Syntax Description
Defaults This command is not enabled by default.
Command Modes Flow record configuration
Supported User Roles network-admin
vdc-admin
Command History
Usage Guidelines The Flexible NetFlow commands that start with collect are used to configure nonkey fields for the flow
monitor record and to enable capturing 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.
This command does not require a license.
Examples This example shows how to configure the input interface as a nonkey field and collect the input interface
value:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect interface input
This example shows how to configure the input interface as a nonkey field and collect the output
interface value:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect interface output
input Configures the input interface as a nonkey field and collects the input
interface from the flows.
output Configures the output interface as a nonkey field and collects the output
interface from the flows.
Release Modification
4.0(1) This command was introduced.