accounting interim-fail

Function

The accounting interim-fail command configures a policy for real-time accounting failures.

The undo accounting interim-fail command restores the default configuration.

By default, if real-time accounting fails, the online policy is used.

Format

accounting interim-fail [ max-times times ] { online | offline }

undo accounting interim-fail

Parameters

Parameter Description Value
max-times times

Specifies the maximum number of real-time accounting failures.

The value is an integer ranging from 1 to 255. The default value is 3.

online

Enables a device not to perform any processing if real-time accounting fails.

-

offline

Disables a device from continuing to provide online services for users if real-time accounting fails.

-

Views

Accounting scheme view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
aaa-access write

Usage Guidelines

Usage Scenario

When a user goes online, a device performs the corresponding operation for the user based on the accounting interim-fail command configuration if real-time accounting fails.

Prerequisites

AAA has been enabled, and an accounting scheme has been created.

Precautions

If the accounting interim-fail max-times online command has been run and the number of times that the device fails to send real-time accounting packets exceeds the value specified by the parameter times, the device still continues to send real-time accounting packets.

If the accounting interim-fail max-times offline command has been run and the number of times that the device fails to send real-time accounting packets exceeds the value specified by the parameter times, the device does not continue to provide online services for the user.

If RADIUS accounting is used, it is recommended that you configure the number of times that real-time accounting packets are retransmitted to be greater than the number of times that RADIUS packets fail to be retransmitted.

Example

# Create an accounting scheme 1, set times set to 5, and specify offline.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] accounting-scheme scheme1
[*HUAWEI-aaa-accounting-scheme1] commit
[~HUAWEI-aaa-accounting-scheme1] accounting interim-fail max-times 5 offline
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >