PurposeCommand
Specifies the Layer 2 attribute as a key.match datalink {mac source-address | mac
destination-address | ethertype | vlan}
Example:
switch(config-flow-record)# match datalink
ethertype
NetFlow Collect Parameters
NetFlow can collect the following parameters, and export the values in either version 5 (traditional NetFlow)
or version 9 (flexible NetFlow) format.
Some of these fields might not be available in traditional NetFlow format.Note
•
Number of Layer 3 bytes (in 64 bit values optionally)
•
Number of packets (in 64 bit values optionally)
•
Flow direction
•
Flow sampler ID
•
Interface type (input, output or both)
•
System up time for the first or the last packet
•
TCP flags
Specifying the Collect Parameters
You must configure at least one of the following collect parameters for flow records:
PurposeCommand
Collects either packet-based or byte counters
from the flow. You can optionally specify
that 64-bit counters are used.
collect counter {bytes | packets} [long]
Example:
switch(config-flow-record)#
switch(config-flow-record)# collect counter packets
Collects the sampler identifier used for the
flow.
collect flow sampler id
Example:
switch(config-flow-record)# collect flow sampler
   Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
264 OL-31641-01   
Configuring NetFlow
NetFlow Collect Parameters