Show answerHide answer
Correct answer: A Router(config)# aaa accounting commands 15 default start-stop group tacacs+
Explanation
SummaryThe question is about configuring accounting for specific commands on a Cisco router. AAA accounting is used to track what users are doing, such as logging the commands they execute. The requirement is to log individual EXEC commands that are associated with a specific privilege level (level 15, which is the highest) and send those logs to a TACACS+ server. The correct command must specify accounting for "commands" at a specific privilege level.
Correct Option
A. Router(config)# aaa accounting commands 15 default start-stop group tacacs+
This command is the only one that correctly enables accounting for individual commands at a specific privilege level.
aaa accounting:
This keyword enables the logging and tracking of user activity.
commands 15:
This specifies that the accounting should be applied to commands executed at privilege level 15.
default start-stop group tacacs+: This directs the router to record the start and stop time of each level 15 command and send that record to the TACACS+ server group.
Incorrect Options
B. Router(config)# aaa authorization exec default group tacacs+
This command configures authorization, not accounting. It determines whether a user is allowed to start an EXEC shell session (e.g., gain access to the CLI) after they have authenticated. It does not log which commands the user runs during that session.
C. Router(config)# aaa authorization commands 15 default group tacacs+
This command configures authorization for commands, not accounting. It checks with the TACACS+ server to see if the user is permitted to run each level 15 command. While it involves commands, its purpose is access control, not logging the commands that were actually executed.
D. Router(config)# aaa accounting exec default start-stop group tacacs+
This command configures accounting for the EXEC session itself, not for the individual commands within it. It would log when a user starts and stops a CLI session (e.g., logs in and logs out), but it would not record a history of the specific commands they typed.
Reference
Cisco IOS Security Command Reference - aaa accounting - The official command reference for aaa accounting details the syntax, including the commands and start-stop keywords, explaining how to enable accounting for commands at a specified privilege level.




