Enabling command accounting

The following procedure enables command accounting on a device where login accounting is enabled and command accounting is disabled.

  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
    Entering configuration mode terminal
  2. Enable command accounting.
    device(config)# aaa accounting command default start-stop tacacs+
  3. Return to privileged EXEC mode.
    device(config)# exit
  4. Verify the configuration.
    device# show running-config aaa accounting
    aaa accounting exec default start-stop none
    aaa accounting commands default start-stop tacacs+