Name
aaa accounting — global
Synopsis
aaa accountinglevel type server-typeno 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:
systemincludes all systemwide commands;networkincludes all networking commands, likeppp.execincludes all EXEC-level commands; andcommandlevelincludes all commands at a specific privilege level.-
type The type of accounting can be set to one of the following:
start-stopcreates an accounting entry at the start and end of the command;wait-startmakes 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-onlysends 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+
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access