7-28
Cisco SCE 8000 10GBE Software Configuration Guide
OL-30621-02
Chapter 7 Configuring Line Interfaces
Configuring Traffic Rules and Counters
•
Count bytes—
The counter is incremented by the number of bytes in the packet for each packet it
counts.
Configuring Traffic Counters
A traffic counter must be created before it can be referenced in a traffic rule. Use the following
commands to create and delete traffic counters.
•
How to Create a Traffic Counter, page 7-28
•
How to Delete a Traffic Counter, page 7-28
•
How to Delete all Existing Traffic Counters, page 7-28
How to Create a Traffic Counter
Options
The following options are available:
•
name
—The name of the counter
•
Count packets—
The counter is incremented by 1 for each packet it counts.
•
Count bytes—
The counter is incremented by the number of bytes in the packet for each packet it
counts.
From the SCE(config if)# prompt, type:
How to Delete a Traffic Counter
From the SCE(config if)# prompt, type:
How to Delete all Existing Traffic Counters
From the SCE(config if)# prompt, type:
Command
Purpose
traffic-counter name
name
count-bytes|count-packets
Adds a traffic counter with the specified name and
counting mode.
Command
Purpose
no traffic-counter name
name
Deletes a traffic counter.
Note that a traffic counter cannot be deleted if it is
used by any existing traffic rule.
Command
Purpose
no traffic-counter all
Removes all traffic counters.
Note that a traffic counter cannot be deleted if it is
used by any existing traffic rule.