C Commands
collect counter
77
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
Examples This example shows how to enable collecting the total number of bytes from the flows as a nonkey field:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect counter bytes
This example shows how to enable collecting the total number of bytes from the flows as a nonkey field
using a 64 bit counter:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect counter bytes long
This example shows how to enable collecting the total number of packets from the flows as a nonkey
field:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect counter packets
This example shows how to enable collecting the total number of packets from the flows as a nonkey
field using a 64-bit counter:
switch(config)# flow record FLOW-RECORD-1
switch(config-flow-record)# collect counter packets long
Related Commands Command Description
collect counter Configures the counters as a nonkey field and collects the counter values.
collect flow Configures flow identifying fields as nonkey fields and collects their values.
collect interface Configures the input and/or output interface as a nonkey field and collects
the values.
collect ipv4 Configures an IPv4 field as a nonkey field and collects the value in it.
collect routing Configures a routing attribute as a nonkey field and collects the value of the
field.
collect timestamp Configures the time stamp fields as nonkey fields and collects the values.
collect transport Configures a transport layer field as a nonkey field and collects the values.
debug flow record Enables debugging output for flow records.
flow record Creates a flow record.
match flow Configures one or more of the flow fields as key fields.
match interface Configures the direction that traffic flows in respect to an interface (interface
field) as a key field.
match ipv4 Configures one or more of the IPv4 fields as a key field.
match routing Configures one or more of the routing fields as a key field.
match timestamp Configures a time stamp field as a key field.
match transport Configures one or more of the transport fields as key fields.
show flow record Displays the flow record status and statistics.