cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
263
Views
0
Helpful
1
Replies

Capturing commands using aaa accounting

Kevin Melton
Level 2
Level 2

Which aaa accounting command would capture all commands that are typed by an authenticated administrator on a Cisco Switch or router?

I have configured the following, but am not getting any output:

aaa accounting commands 0 default start-stop group tacacs+

I am logging the output to a Cisco ACS Server who is running tacacs+

1 Accepted Solution

Accepted Solutions

Richard Burts
Hall of Fame
Hall of Fame

Kevin

You need to have a separate aaa accounting command for each privilege level for which you want to log commands. So for user level commands you would use:

aaa accounting commands 1 default start-stop group tacacs+

and for privilege mode commands use:

aaa accounting commands 15 default start-stop group tacacs+

As you have discovered logging commands at privilege level 0 is not particularly effective. If you have configured other privilege levels on your router then you would need additional accounting commands for each of those levels.

HTH

Rick

HTH

Rick

View solution in original post

1 Reply 1

Richard Burts
Hall of Fame
Hall of Fame

Kevin

You need to have a separate aaa accounting command for each privilege level for which you want to log commands. So for user level commands you would use:

aaa accounting commands 1 default start-stop group tacacs+

and for privilege mode commands use:

aaa accounting commands 15 default start-stop group tacacs+

As you have discovered logging commands at privilege level 0 is not particularly effective. If you have configured other privilege levels on your router then you would need additional accounting commands for each of those levels.

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: