Collect Counter - Cisco Catalyst 3650 series Command Reference Manual

Cisco ios xe everest 16.5.1a
Hide thumbs Also See for Catalyst 3650 series:
Table of Contents

Advertisement

collect counter

To configure the number of bytes or packets in a flow as a non-key field for a flow record, use the collect
counter command in flow record configuration mode. To disable the use of the number of bytes or packets
in a flow (counters) as a non-key field for a flow record, use the no form of this command.
collect counter {bytes layer2 long| bytes long| packets long}
no collect counter {bytes layer2 long| bytes long| packets long}
Syntax Description
bytes layer2 long
bytes long
packets long
Command Default
The number of bytes or packets in a flow is not configured as a non-key field.
Command Modes
Flow record configuration
Command History
Release
Cisco IOS XE 3.3SE
Usage Guidelines
The collect counter bytes long command configures a 64-bit counter for the number of bytes seen in a flow.
The collect counter packets long command configures a 64-bit counter that will be incremented for each
packet seen in the flow. It is unlikely that a 64-bit counter will ever restart at 0.
To return this command to its default settings, use the no collect counter or default collect counter flow
record configuration command.
Examples
The following example configures the total number of bytes in the flows as a non-key field:
Device(config)# flow record FLOW-RECORD-1
Device(config-flow-record)#collect counter bytes long
The following example configures the total number of packets from the flows as a non-key field:
Device(config)# flow record FLOW-RECORD-1
Device(config-flow-record)# collect counter packets long
Configures the number of Layer 2 bytes seen in a flow as a non-key field, and
enables collecting the total number of Layer 2 bytes from the flow using a 64-bit
counter.
Configures the number of bytes seen in a flow as a non-key field, and enables
collecting the total number of bytes from the flow using a 64-bit counter.
Configures the number of packets seen in a flow as a non-key field and enables
collecting the total number of packets from the flow using a 64-bit counter.
Modification
This command was introduced.
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
collect counter
415

Advertisement

Table of Contents
loading

Table of Contents