accounting
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.
Syntax
accounting { byte | packet }
undo accounting
Default
No traffic accounting action is configured.
Views
Traffic behavior view
Predefined user roles
network-admin
mdc-admin
Parameters
byte: Counts traffic in bytes.
packet: Counts traffic in packets. This keyword affects the unit of CAR statistics.
Examples
# Configure a traffic accounting action in traffic behavior database to count traffic in bytes.
<Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] accounting byte