109
NOTE:
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 three seconds (set with the
timer
response-timeout
command), the maximum number of RADIUS packet transmission attempts is three (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 three seconds.
If the device receives no response after transmitting the request three times, it considers the accounting
attempt a failure, and makes another accounting attempt. If five consecutive accounting attempts fail, the
device cuts the user connection.
Related commands:
retry
,
timer response-timeout
, and
timer realtime-accounting
.
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
retry stop-accounting (RADIUS scheme view)
Syntax
retry stop-accounting
retry-times
undo retry stop-accounting
View
RADIUS scheme view
Default level
2: System level
Parameters
retry-times
: Maximum number of stop-accounting attempts, in the range 10 to 65535.
Description
Use the
retry stop-accounting
command to set the maximum number of stop-accounting attempts.
Use the
undo retry stop-accounting
command to restore the default.
By default, the maximum number of stop-accounting attempts is 500.