accounting
Use accounting to configure a traffic accounting action in a traffic behavior.
Use undo accounting to delete the action.
Syntax
accounting { byte | packet }
undo accounting
Default
No traffic accounting action is configured.
Views
Traffic behavior view
Predefined user roles
network-admin
Parameters
byte: Counts traffic in bytes.
packet: Counts traffic in packets.
Usage guidelines
A QoS policy that contains an accounting action cannot be applied globally.
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