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:
•
•
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
Options
The following options are available:
•
•
•
From the SCE(config if)# prompt, type traffic-counter name name count-bytes|count-packets and
Step 1
press Enter.
Adds a traffic counter with the specified name and counting mode.
How to Delete a Traffic Counter
From the SCE(config if)# prompt, type no traffic-counter name name and press Enter.
Step 1
Note
Cisco SCE8000 Software Configuration Guide
6-10
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.
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
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.
A traffic counter cannot be deleted if it is used by any existing traffic rule.
Chapter 6
Configuring the Line Interface
OL-16479-02