[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring Accounting

Once TACACS+ support is enabled on the router, you can configure TACACS+ accounting. Perform the following steps:

  1. Specify AAA new model as the accounting method for your router.
    host1(config)#aaa new-model
  2. Enable TACACS+ accounting on the router, and configure accounting method lists. For example:
    host1(config)#aaa accounting exec default start-stop tacacs+
    host1(config)#aaa accounting commands 0 listX stop-only tacacs+
    host1(config)#aaa accounting commands 1 listX stop-only tacacs+
    host1(config)#aaa accounting commands 13 listY stop-only tacacs+
    host1(config)#aaa accounting commands 14 default stop-only tacacs+
    host1(config)#aaa accounting commands 15 default stop-only tacacs+
  3. (Optional) Specify that accounting records are not generated for users without explicit user names.
    host1(config)#aaa accounting suppress null-username
  4. Apply accounting method lists to a console or lines. For example:
    host1(config)#line console 0
    host1(config-line)#accounting commands 0 listX
    host1(config-line)#accounting commands 1 listX
    host1(config-line)#accounting commands 13 listY
    host1(config-line)#exit
    host1(config)#line vty 0 4
    host1(config-line)#accounting commands 13 listY

Note that Exec accounting and User Exec mode commands accounting for privilege levels 14 and 15 are now enabled for all lines and consoles with the creation of their default method list, as shown in Step 2.

aaa accounting commands

aaa accounting exec

aaa accounting suppress null-username

aaa authentication enable default

aaa authentication login

aaa new-model

accounting

line

login authentication

tacacs-server host

tacacs-server key

tacacs-server source-address

tacacs-server timeout


[Contents] [Prev] [Next] [Index] [Report an Error]