71
retry realtime-accounting
Use
retry realtime-accounting
to set the maximum number of accounting attempts.
Use
undo retry realtime-accounting
to restore the default.
Syntax
retry realtime-accounting
retry-times
undo retry realtime-accounting
Default
The maximum number of accounting attempts is 5.
Views
RADIUS scheme view
Default command level
2: System level
Parameters
retry-times
: Maximum number of accounting attempts, ranging from 1 to 255.
Usage guidelines
A RADIUS server usually checks whether a user is online by using a timeout timer. If it receives no
real-time accounting request for a user in the timeout period from the NAS, it considers that there
may be line or device failures and stops accounting for the user. This may happen when some
unexpected failure occurs. To cooperate with this feature of the RADIUS server, the NAS must keep
pace with the server in disconnecting the user. The maximum number of accounting attempts,
together with some other parameters, enables the NAS to promptly disconnect the user.
The maximum number of accounting attempts, together with some other parameters, controls how
the NAS sends accounting request packets.
Suppose that the RADIUS server response timeout period is 3 seconds (set with the
timer
response-timeout
command), the maximum number of RADIUS packet transmission attempts is 3
(set with the
retry
command), the real-time accounting interval is 12 minutes (set with the
timer
realtime-accounting
command), and the maximum number of accounting attempts is five (set with
the
retry realtime-accounting
command). In this case, the device generates an accounting request
every 12 minutes, and retransmits the request if it sends the request but receives no response within
3 seconds. If the device receives no response after transmitting the request three times, it considers
the accounting attempt a failure, and it makes another accounting attempt. If five consecutive
accounting attempts fail, the device cuts the user connection.
Examples
# Set the maximum number of accounting attempts to 10 for RADIUS scheme
radius1
.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] retry realtime-accounting 10
Related commands
•
retry
•
timer
response-timeout
•
timer
realtime-accounting