accounting-on enable
Syntax
accounting-on enable [ interval seconds | send send-times ] *
undo accounting-on enable
View
RADIUS scheme view
Default level
2: System level
Parameters
seconds: Time interval for retransmitting an accounting-on packet in seconds, ranging from 1 to 15. The default setting is 3 seconds.
send-times: Maximum number of accounting-on packet transmission attempts, ranging from 1 to 255. The default setting is 50.
Description
Use accounting-on enable to configure the accounting-on feature. This feature enables the switch to, after rebooting, automatically send an accounting-on message to the RADIUS accounting server indicated by the RADIUS scheme to stop accounting for and log out online users.
Use undo accounting-on enable to disable the accounting-on feature.
By default, the accounting-on feature is disabled.
Parameters set with the accounting-on enable command take effect immediately.
After executing the accounting-on enable command, issue the save command to make sure that the command takes effect after the switch reboots. For information about the save command, see Fundamentals Command Reference.
Related commands: radius scheme.
Examples
# Enable the accounting-on feature for RADIUS authentication scheme radius1, set the retransmission interval to 5 seconds, and set the transmission attempts to 15.
<Sysname> system-view [Sysname] radius scheme radius1 [Sysname-radius-radius1] accounting-on enable interval 5 send 15