38
RADIUS configuration commands
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 is 3 seconds.
send-times
: Maximum number of accounting-on packet transmission attempts, ranging from 1 to 255.
The default is 50.
Description
Use the
accounting-on enable
command to enable the accounting-on feature and specify the
retransmission interval and the maximum number of transmission attempts. After doing so, when the
device reboots, an accounting-on message will be sent to the RADIUS server to log out the online users
of the device.
Use the
undo accounting-on enable
command 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.
NOTE:
When you execute the
accounting-on
enable
command, if the accounting-on feature is already enabled
for another authentication scheme, the command takes effect immediately. Otherwise, you must save the
configuration by using the
save
command, so that the command takes effect after the device reboots. For
more information about the
save
command, see the
Fundamentals Command Reference.
Related commands:
radius scheme
.
Examples
# Enable the accounting-on feature for RADIUS authentication scheme
rd
, set the retransmission interval
to 5 seconds, and set the transmission attempts to 15.
<Sysname> system-view
[Sysname] radius scheme rd
[Sysname-radius-rd] accounting-on enable interval 5 send 15