Traffic behavior configuration commands
accounting
Syntax
accounting { byte | packet }
undo accounting
View
Traffic behavior view
Default level
2: System level
Parameters
byte: Counts traffic in bytes.
packets: Counts traffic in packets.
Description
Use accounting to configure the traffic accounting action in a traffic behavior.
Use undo accounting to delete the traffic accounting action from a traffic behavior.
You can use the accounting action to collect statistics for a traffic class, for example, the traffic sourced
from a certain IP address.
You can use the display qos policy interface command and the display qos vlan-policy command to
display class-based traffic statistics.
Related commands: qos policy, traffic behavior, and classifier behavior.
Examples
# Configure the accounting action in the traffic behavior database to collect statistics in bytes.
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] accounting byte
car
Syntax
car cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir
peak-information-rate ] [ green action ] [ yellow action ] [ red action ]
undo car
View
Traffic behavior view
Default level
2: System level
42