The accounting start-fail command configures a policy for an accounting start failure.
The undo accounting start-fail command restores the default policy for an accounting start failure.
By default, if the accounting server fails to start accounting, users cannot go online, value-added services will be deleted, and the offline mode is used.
Parameter | Description | Value |
---|---|---|
online |
If the accounting server fails to start accounting, users keep online. |
- |
keep-accounting |
Indicates that a device stays in the accounting state and does not immediately send accounting stop packets. The device sends accounting stop packets only when users go offline. This parameter takes effect for device and BRAS users. By default, if the online parameter is specified, a device immediately sends accounting stop packets when accounting start fails. |
- |
offline |
If the accounting server fails to start accounting, users cannot go online or delete value-added services. |
- |
Usage Scenario
To configure a policy for an accounting start failure, run the accounting start-fail command.
In real-time accounting scenarios, if the keep-accounting parameter is configured, the device sends real-time accounting packets at the configured real-time accounting interval until the user goes offline even if accounting fails to start. Before running the command, enable AAA and create an accounting scheme.Precautions
This command applies also to the accounting packet copy function.