< Home

reset access-user traffic-statistics

Function

The reset access-user traffic-statistics command clears statistics on traffic of online users in a user group.

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H,?S5731S-H, S5731-S, S5731S-S, S6720-HI, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI support this command.

Format

reset access-user traffic-statistics { user-id begin-id [ end-id ] | mac-address mac-address | ip-address ip-address [ vpn-instance vpn-instance ] }

Parameters

Parameter Description Value

user-id begin-id [ end-id ]

Specifies IDs of online users.

  • begin-id specifies the start ID of online users.
  • end-id specifies the end ID of online users. The end ID must be greater than the begin ID.

To view IDs of online users, run the display access-user command.

The value is an integer that varies depending on the product model.

mac-address mac-address

Specifies the MAC address of an online user.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

ip-address ip-address

Specifies the IP address of an online user.

The value is in dotted decimal notation.

vpn-instance vpn-instance

Specifies the VPN instance that an online user belongs to.

The value must be an existing VPN instance name.

Views

User view

Default Level

3: Management level

Usage Guidelines

After traffic control is configured for users in a user group using the car command, the device collects statistics on traffic of each user in the user group. You can run the reset access-user traffic-statistics command to clear statistics on traffic of online users in a user group.

After you run the reset access-user traffic-statistics command to clear traffic statistics, the cleared user traffic statistics are not included in the accounting packets sent by the device to the accounting server.

Example

# Clear statistics on traffic of the user with the IP address as 10.1.1.1.

<HUAWEI> reset access-user traffic-statistics ip-address 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >