aaa accounting

Enables or disables sending accounting logs for commands or login information to the TACACS+ server.

Syntax

aaa accounting commands default start-stop{ tacacs+ | none }
no aaa accounting commands default start-stop{ tacacs+ | none}

Command Default

Accounting is disabled.

Parameters

commands
Enables command 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+
Specifies using the TACACS+ server for accounting.
none
Disables accounting services.

Modes

Config mode

Usage Guidelines

This command is allowed in Config mode only.

You must have an admin role to use this command.

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 commands default start-stop tacacs+

The following example disables login accounting by using the no aaa accounting command; command accounting (when also configured) remains active.

device(config)# no aaa accounting default start-stop