accounting-scheme (AAA domain view)

Function

The accounting-scheme command specifies an accounting scheme for the current domain.

The undo accounting-scheme command restores the default accounting scheme.

By default, the default0 accounting scheme is used for the default0 domain, the default1 accounting scheme is used for the default1 domain, the default0 accounting scheme is used for the Default_admin domain, and the default1 accounting scheme is used for a user-defined domain.

Format

accounting-scheme accounting-scheme-name

undo accounting-scheme

Parameters

Parameter Description Value
accounting-scheme-name

Specifies the name of the accounting scheme.

The value is a string of 1 to 32 case-insensitive characters. A scheme name must comply with the naming regulation of Windows. It cannot contain slash (\), anti-slash (/), colon (:), asterisk (*), question mark (?), quotation mark ("), angle brackets (< >), (|) and spaces.

Views

AAA domain view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

To ensure operating income, accounting on online users must be performed. After an accounting scheme and an accounting mode are configured, the accounting mode can be used to perform accounting on users in a domain only after the accounting scheme is bound to the domain using the accounting-scheme command.

Prerequisites

Before using the accounting-scheme command, you must create an accounting scheme and specify an accounting mode.

Follow-up Procedure

After an accounting scheme is specified for a domain by using the accounting-scheme command, the domain can use the accounting scheme to perform accounting on the domain users.

Example

# Bind the accounting scheme named newscheme to the current domain.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] accounting-scheme newscheme
[*HUAWEI-aaa-accounting-newscheme] quit
[*HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] accounting-scheme newscheme
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >