Command Reference AAA Commands
Mode
Usage Guide
RGOS enables the EXEC accounting function only after users pass login authentication. EXEC
accounting is not performed when users are not anthenticated upon login or the none authentication
method is used.
After the accounting function is enabled, an accounting start message is sent to the security server
when a user logs in to the NAS CLI, and an accounting stop message is sent to the security server
when the user logs out. If an accounting start message is not sent to the security server when a user
logs in, an accounting stop message is not sent to the security server when the user logs out.
You must apply the configured EXEC accounting method to the terminal line that requires command
accounting; otherwise, the configured EXEC accounting method is ineffective..
Configuration
Examples
The following example performs accounting on users' NAS login activities by using RADIUS, and
sends accounting messages at the start time and end time of access.
Ruijie(config)# aaa accounting exec default start-stop group radius
Command Description Related
Commands
aaa new-model
Enables the AAA security service.
aaa authentication
Defines AAA identity authentication.
accounting commands
Applies EXEC accounting to a terminal line.
Platform
Description
N/A
aaa accounting network
Use this command to perform accounting on users' access activities in global configuration mode in
order to count network access fees or manage user activities.
Use the no form of this command to disable the network accounting function.
aaa accounting network { default | list-name } start-stop method1 [ method2... ]
no aaa accounting network { default | list-name }
Parameter Description
default
When this parameter is used, the following defined method list is used as the
default method of network accounting.
list-name
Specifies the name of an accounting method list.
start-stop
Sends accounting messages at both the start time and end time of users'
network access. Users are allowed to access networks regardless of
whether the accounting start message enables accounting successfully.
method
It must be one of the keywords: none and group. One method list can
contain up to four methods.
none
Accounting is not performed.
Parameter
Description
group
Uses a server group for accounting. Currently, the RADIUS and TACACS+