aaa accounting commands

Configures the AAA accounting configuration parameters for EXEC commands.
Syntax
aaa accounting commands privilege-level default start-stop radius [ tacacs+ ] [ none ]
no aaa accounting commands privilege-level default start-stop radius [ tacacs+ ] [ none ]
aaa accounting commands privilege-level default start-stop tacacs+ [ radius ] [ none ]
no aaa accounting commands privilege-level default start-stop tacacs+ [ radius ] [ none ]
aaa accounting commands privilege-level default start-stop none
no aaa accounting commands privilege-level default start-stop none
Command Default

AAA accounting is disabled.

Parameters
privilege-level
Configures the device to perform AAA accounting for the commands available at the specified privilege level. Valid values are 0 (Super User level - all commands), 4 (Port Configuration level - port-config and read-only commands), and 5 (Read Only level - read-only commands).
default
Configures the default named list.
start-stop
Configures to send an Accounting Start packet to the AAA accounting server when you enter a command, and an Accounting Stop packet when the service provided by the command is completed.
radius
Configures RADIUS accounting.
tacacs+
Configures TACACS+ accounting.
none
Disables accounting. This is equivalent to using the no form of the command.
Modes

Global configuration mode

Usage Guidelines

You can configure AAA accounting for CLI commands by specifying a privilege level with commands that require accounting.

Note: If authorization is enabled, and the command requires authorization, then authorization is performed before accounting takes place. If authorization fails for the command, no accounting takes place.

You can configure RADIUS, TACACS+, and none as accounting methods. If the configured primary accounting fails due to an error, the device tries the backup accounting methods in the order they are configured.

The no form of the command disables accounting.

Examples

The following example configures the ICX device to perform RADIUS accounting for the commands available at the Super User privilege level (that is, all commands on the device).

device(config)# aaa accounting commands 0 default start-stop radius

The following example configures the ICX device to perform TACACS+ accounting for the commands available at the Read-only level (that is, read-only commands). The command also configures TACACS+ as the primary accounting followed by RADIUS.

device(config)# aaa accounting commands 5 default start-stop tacacs+ radius