The accounting-mode command configures an accounting mode in an accounting scheme.
The undo accounting-mode command restores the default accounting mode in an accounting scheme.
By default, the accounting mode is none.
Parameter |
Description |
Value |
|---|---|---|
hwtacacs |
Indicates that accounting is performed by an HWTACACS server. |
- |
none |
Indicates non-accounting. |
- |
radius |
Indicates that accounting is performed by a RADIUS server. |
- |
Usage Scenario
Enterprises or carriers need to generate revenue by charging users who are accessing the Internet.
When a user goes online, accounting starts after the user is authenticated and authorized. When the user goes offline, accounting stops. The client sends the account packet containing the user's online duration to the accounting server.
To charge users, set the accounting mode to RADIUS or HWTACACS. Generally, the accounting mode is consistent with the authentication mode. If you do not need to charge users, set the accounting mode to none.
Follow-up Procedure
Apply the accounting scheme to a domain to enable the device to charge the users in the domain using the domain command.