< Home

statistic enable (AAA domain view)

Function

The statistic enable command enables traffic statistics collection for domain users.

The undo statistic enable command disables traffic statistics collection for domain users.

By default, traffic statistics collection is disabled for domain users.

After the statistic enable command is executed, statistics about both IPv4 and IPv6 upstream and downstream traffic will be collected. After the accounting dual-stack separate command is executed, IPv4 and IPv6 traffic statistics will be collected separately. The following describes the traffic statistics function.

  • The SI and LI series cards support the function of collecting statistics about IPv4 and IPv6 upstream and downstream traffic only in multi-share mode. Other series cards support this function.
  • In a single-MAC multi-IP scenario, only IPv4 traffic statistics can be collected.
  • The device does not support Layer 3 IPv6 Portal authentication or traffic statistics collection of Layer 3 IPv6 Portal authentication users.
  • If a device does not support Layer 2 IPv6 Portal authentication, the device can collect statistics about IPv4 and IPv6 upstream and downstream traffic after Portal authentication is triggered for IPv4 users. The following devices do not support Layer 2 IPv6 Portal authentication: S2720-EI, S2750-EI, S5700-LI, S5700S-LI, S5710-C-LI, S5710-X-LI, S5720-LI, S5720S-LI, S5700-SI, S5720-SI, S5720S-SI, S5720I-SI, S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI.
  • In tunnel forwarding mode, IPv4 and IPv6 traffic statistics can be collected for wireless users. In direct forwarding mode, only IPv4 traffic statistics can be collected for wireless users.

Format

statistic enable

undo statistic enable

Parameters

None

Views

AAA domain view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To implement traffic-based accounting, you can use this command to enable traffic statistics collection for a domain. Then the device collects traffic statistics for the users in the domain. If an accounting server is configured, the device sends traffic statistics to the accounting server through accounting packets so that the server performs accounting for the users based on traffic statistics.

Follow-up Procedure

Run the display access-user command to view traffic statistics of users.

Precautions

This command collects service statistics for domain users. The device sends the statistics to the accounting server.

On the S5720-LI, S5735-L, S5735S-L, S5735S-L-M and S5720S-LI:

  • Traffic statistics are collected based on interfaces.
  • The traffic statistics collection is valid for domain users only when interfaces are physical interface and each interface connects to only one domain user.
  • The interface traffic statistics for the first 15s when a user goes online are not collected.
  • When users are online, you cannot run the reset_counters_interface command to clear interface traffic statistics. Otherwise, the user traffic statistics are inaccurate.

Example

# Enable traffic statistics collection for domain users.

<HUAWEI> system-view
[HUAWEI] aaa
[HUAWEI-aaa] domain huawei
[HUAWEI-aaa-domain-huawei] statistic enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >