50
[Sysname] local-user abc
[Sysname-luser-abc] validity-date 12:10:20-2008/04/30
[Sysname-luser-abc] expiration-date 12:10:20-2008/05/31
Related commands
expiration-date
RADIUS configuration commands
accounting-on enable
Use
accounting-on enable
to configure the accounting-on feature.
Use
undo accounting-on enable
to disable the accounting-on feature.
Syntax
accounting-on enable
[
interval
seconds
|
send
send-times
] *
undo accounting-on enable
Default
The accounting-on feature is disabled.
Views
RADIUS scheme view
Default command 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.
Usage guidelines
The accounting-on feature enables the device, after rebooting, to 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.
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 device reboots.
Examples
# Enable the accounting-on feature for RADIUS authentication scheme
radius1
, and set the
retransmission interval to 5 seconds and the transmission attempts to 15.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] accounting-on enable interval 5 send 15
Related commands
radius scheme