aaa accounting
To enable authentication, authorization, and accounting (AAA) accounting of requested services for billing or security purposes when you use TACACS+, use the aaa accounting command in global configuration mode or template configuration mode. To disable AAA accounting, use the no form of this command.
aaa accounting { system | exec | network | connection | connection-name | commands level } [default] { start-stop | stop-only } group group-name
no aaa accounting { system | exec | connection | connection-name | commands level } [default] { start-stop | stop-only } group group-name
Syntax Description
system |
Performs accounting for all system-level events not associated with users, such as reloads.
|
||
commands connection exec |
Specifies the accounting method list. Enter at least one of the following keywords:
|
||
exec |
Runs accounting for the EXEC shell session. This keyword might return user profile information such as what is generated by the autocommand command. |
||
network |
Runs accounting for all network-related service requests. |
||
connection |
Provides information about all outbound connections made from the network access server, such as Telnet, local-area transport (LAT), TN3270, packet assembler and disassembler (PAD), and rlogin. |
||
commands level |
Runs accounting for all commands at the specified privilege level. Valid privilege level entries are integers from 0 through 15. |
||
start-stop |
Sends a “start” accounting notice at the beginning of a process and a “stop” accounting notice at the end of a process. The “start” accounting record is sent in the background. The requested user process begins regardless of whether the “start” accounting notice was received by the accounting server. |
||
stop-only |
Sends a stop accounting record for all cases including authentication failures regardless of whether the aaa accounting send stop-record authentication failure command is configured. |
||
group group-name |
Server groups for aaa accounting with group-name as character string or radius or tacacs+ as defined by aaa group server command. |
Command Default
AAA accounting is disabled.
Command Modes
Global configuration (config)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Release 17.2.1r |
Command qualified for use in Cisco vManage CLI templates. exec , commands , connection , system keywords and group group-name , local , none methods are supported. |
Cisco IOS XE Catalyst SD-WAN Release 17.5.1a |
Additional method qualified: network |
Cisco IOS XE Catalyst SD-WAN Release 17.10.1a |
Support for multi-group configuration is added. |
Cisco IOS XE Catalyst SD-WAN Release 17.12.1a |
Additional methods qualified: group tacacs+ |
Usage Guidelines
Use the aaa accounting command to enable accounting and to create named method lists that define specific accounting methods on a per-line or per-interface basis.
For usage guidelines, see the Cisco IOS XE aaa accounting command.
The table below contains descriptions of keywords for AAA accounting methods.
Keyword |
Description |
---|---|
group group-name |
Uses a subset of RADIUS or TACACS+ servers for accounting as defined by the server group group-name argument. |
group tacacs+ |
Uses the list of all TACACS+ servers for authentication as defined by the aaa group server tacacs+ command. |
The following example shows how to define a default command accounting method list, where accounting services are provided by a TACACS+ security server, set for privilege level 15 commands with a stop-only restriction:
aaa accounting commands 15 default stop-only group tacacs+
aaa authorization commands 15 default local group tacacs+
aaa accounting exec default start-stop group tacacs+
aaa accounting commands 15 default start-stop group tacacs+
aaa accounting system default start-stop group tacacs+
aaa accounting network default group tacacs+
The following example shows how to configure multiple groups:
aaa accounting commands 15 default start-stop group tacacs+ broadcast logger group radius