accounting {exec | commands} {default | <list_name>}
no accounting
exec – Causes accounting for an EXEC session.
commands – This causes accounting for each command execution attempt. If a user is enabling
accounting for exec mode for the current line-configuration type, the user will be logged out..
default - The default Accounting List.
<listname> - Enter a string of not more than 15 characters.
no – This command removes accounting from a Line Configuration mode.
Default Setting
None
Command Mode
Line Configuration Mode