C Commands
collect counter
76
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
collect counter
To configure the number of bytes or packets in a flow as a nonkey field and collect the counter values
(number of bytes or packets seen) for a Flexible NetFlow flow record, use the collect
counter command.
To disable the use of the number of bytes or packets in a flow (counters) as a nonkey field for a Flexible
NetFlow flow record, use the no form of this command.
collect counter {bytes [long] | packets [long]}
no collect counter {bytes [long] | packets [long]}
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.
Use the collect counter packets command to configure a 32-bit counter that is incremented for each
packet seen in the flow. For extremely long flow it is possible for this counter to wrap when it reaches
the limit of 4 billion or more packets. When the flow monitor detects a scenario that could cause a wrap,
the flow monitor with a normal cache type exports the flow and starts a new flow.
Use the collect counter packets long command to configure a 64-bit counter that is incremented for
each packet seen in the flow. It is unlikely that a 64-bit counter will ever wrap.
This command does not require a license.
bytes Configures the number of bytes seen in a flow as a nonkey field and collects
the total number of bytes from the flow.
long (Optional) Collects the total number of bytes from the flow using a 64-bit
counter.
packets Configures the number of bytes seen in a flow as a nonkey field and collects
the total number of packets from the flow.
Release Modification
4.0(1) This command was introduced.