radius-server accounting cache

Function

The radius-server accounting cache command configures the maximum number of accounting packets that can be cached.

The undo radius-server accounting cache command restores the default configuration.

By default, a maximum of 4096 users' accounting packets or 8192 accounting packets can be cached.

This command is supported only on the NetEngine 8000 F1A.

Format

radius-server accounting cache max-packet-number

undo radius-server accounting cache max-packet-number

Parameters

Parameter Description Value
max-packet-number

Specifies the maximum number of accounting packets that can be cached.

The value is an integer ranging from 8192 to 256000.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-radius write

Usage Guidelines

Usage Scenario

In RADIUS accounting scenarios, a maximum of 4096 users' accounting packets or 8192 accounting packets can be cached by default. Accounting packets are classified as accounting start, real-time accounting, or accounting stop packets. To configure the maximum number of accounting packets that can be cached, run the radius-server accounting cache command.

Configuration Impact

If the value specified by max-packet-number is not 8192, the number of users is subject to the device specification.

If the number of cached packets on a device reaches the value specified by max-packet-number, the device releases the earliest user's all packets from the cache queue and caches newly generated accounting packets.

Precautions

If the value specified by is less than the number of cached packets, the command configuration fails. If the value specified by is 8192 or the undo radius-server accounting cache command is run, the system checks the number of users whose packets are cached. If the number of users whose packets are cached is greater than 4096, the command configuration fails.

If the maximum number of accounting packets that can be cached is set to a large value, many memory resources are consumed when the number of cached accounting packets increases. Therefore, you must properly set the maximum number of accounting packets that can be cached.

In VS mode, this command is supported only by the admin VS.

Example

# Set the maximum number of accounting packets that can be cached to 16000.
<HUAWEI> system-view
[~HUAWEI] radius-server accounting cache 16000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >