No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
accounting interim-fail

accounting interim-fail

Function

The accounting interim-fail command sets the maximum number of real-time accounting failures and configures a policy used after the number of real-time accounting failures exceeds the maximum.

The undo accounting interim-fail command restores the default maximum number of real-time accounting failures and the default policy.

By default, the maximum number of real-time accounting failures is 3 and the device keeps users online after the number of real-time accounting failures exceeds the maximum.

Format

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

undo accounting interim-fail

Parameters

Parameter

Description

Value

max-times times

Specifies the maximum number of real-time accounting failures. If the maximum number of real-time accounting failures is reached and the next accounting request still has no response, the device considers that accounting fails and takes a policy for users.

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

offline

Disconnects users if real-time accounting fails.

-

online

Keeps users online if real-time accounting fails.

-

Views

Accounting scheme view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After the real-time accounting function takes effect, the device sends real-time accounting requests to an accounting server, and the accounting server responds to the accounting requests. If the network is unstable, for example, a jitter occurs, the device may not receive response packets. As a result, accounting is interrupted for a short period of time. To reduce or prevent accounting interruption, run the accounting interim-fail command to set the maximum number of real-time accounting failures. The device considers that real-time accounting fails only after the number of consecutive real-time accounting failures exceeds the maximum.

Choose one of the following policies to be applied after the maximum number of real-time accounting failures is reached:

  • online: To prevent users from being affected by network faults, use the online policy to allow paid users to go online.
  • offline: To stop providing services when accounting fails, use the offline policy to force paid users to go offline.

Prerequisites

The real-time accounting function has been enabled by using the accounting realtime command.

Precautions

The accounting interim-fail command does not take effect for online users, but takes effect for the users who go online after the command is executed.

Example

# In the accounting scheme scheme1, set the maximum number of real-time accounting failures to 5 and use the offline policy.

<Huawei> system-view
[Huawei] aaa
[Huawei-aaa] accounting-scheme scheme1
[Huawei-aaa-accounting-scheme1] accounting realtime 3
[Huawei-aaa-accounting-scheme1] accounting interim-fail max-times 5 offline
Related Topics
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 203232

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next