6-10
Cisco SCE8000 Software Configuration Guide
OL-16479-02
Chapter 6 Configuring the Line Interface
Configuring Traffic Rules and Counters
Traffic Counters
Traffic counters count the traffic as specified by the traffic rules. The maximum number of counters is
32. Each counter is given a name when it is defined, which is then used when referring to the counter.
A traffic counter can be configured in one of two ways:
•
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.
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 6-10
•
How to Delete a Traffic Counter, page 6-10
•
How to Delete all Existing Traffic Counters, page 6-11
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.
Step 1
From the SCE(config if)# prompt, type
traffic-counter name
name
count-bytes|count-packets
and
press
Enter
.
Adds a traffic counter with the specified name and counting mode.
How to Delete a Traffic Counter
Step 1
From the SCE(config if)# prompt, type
no traffic-counter name
name
and press
Enter
.
Note
A traffic counter cannot be deleted if it is used by any existing traffic rule.