Command Line Interface

4-96

4
Example

accounting exec

This command applies an accounting method to local console or Telnet connections.
Use the no form to disable accounting on the line.
Syntax
accounting exec {default | list-name}
no accounting exec
default - Specifies the default method list created with the aaa accounting
exec command (page 4-93).
list-name - Specifies a method list created with the aaa accounting exec
command.
Default Setting
None
Command Mode
Line Configuration
Example

accounting commands

This command applies an accounting method to entered CLI commands. Use the
no form to disable accounting for entered CLI commands.
Syntax
accounting commands level {default | list-name}
no accounting commands level
level - The privilege level for executing commands. (Range: 0-15)
default - Specifies the default method list created with the aaa accounting
commands command (page 4-94).
list-name - Specifies a method list created with the aaa accounting
commands command.
Default Setting
None
Console(config)#interface ethernet 1/2
Console(config-if)#accounting dot1x tps
Console(config-if)#
Console(config)#line console
Console(config-line)#accounting exec tps
Console(config-line)#exit
Console(config)#line vty
Console(config-line)#accounting exec default
Console(config-line)#