aaa accounting
Enables or disables sending accounting
logs for commands or login information to the TACACS+ server.
Syntax
aaa accounting
{
commands
|
exec
|
all
}
default start-stop
{
tacacs+
|
none
}
no aaa accounting
commands
default start-stop
tacacs+
Command Default
Accounting is disabled.
Parameters
- accounting
- Configures command accounting.
- commands
- Enables or disables command accounting.
- exec
- Enables or disables login accounting.
- all
- Enables or disables command and login accounting.
- default
- Enables sending of logged information to the
default server.
- start-stop
- Enables the sending of 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.
-
- tacacs+
- Configures TACACS+ server for
accounting.
- none
- Disables accounting services.
Usage Guidelines
This command is allowed in Config mode only.
This command is available only to users with admin
role.
You can modify or enable only one accounting configuration.
Examples
The following example configures command accounting, with the CLI information being forwarded
to the TACACS+ server.
device# configure terminal
device(config)# aaa accounting all default start-stop tacacs+
device# show running-config aaa
aaa authentication login tacacs+ local-auth-fallback
aaa accounting commands default start-stop tacacs+
aaa accounting exec default start-stop tacacs+
The following example disables login accounting; command accounting (when also configured)
remains active.
device(config)# no aaa accounting all default start-stop