Name
aaa accounting — global
Synopsis
aaa accountinglevel type server-type
no aaa accountinglevel type server-type
Configures
AAA Accounting
Default
Disabled
Description
This command enables accounting, which can be used for billing and security purposes.
-
level
The accounting level is specified using one of the following keywords:
system
includes all systemwide commands;network
includes all networking commands, likeppp
.exec
includes all EXEC-level commands; andcommand
level
includes all commands at a specific privilege level.-
type
The type of accounting can be set to one of the following:
start-stop
creates an accounting entry at the start and end of the command;wait-start
makes an entry at the start and end of the command and causes the command to wait until the accounting message has been received by the server; andstop-only
sends an accounting entry only when the command has completed execution.-
server-type
Specifies which protocol to use for accounting; either
tacacs+
orradius
.
Example
The following configuration statements enable AAA accounting for commands at level 5. An accounting entry is generated when the command is initiated and when it is terminated; the command doesn’t execute until the server has received the message and the TACACS+ protocol is used to send the entries to the accounting server.
aaa new-model aaa accounting command 5 wait-start tacacs+
Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.