Use this command in Line Configuration mode to apply the accounting method list to a line config (console/telnet/ssh).
| Format | accounting {exec | commands } {default | listname} |
| Mode | Line Configuration |
| Parameter | Description |
|---|---|
| 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. |
Example: The following is a example of the command.
(Routing) # (Routing) #configure (Routing) (Config)#line telnet (Routing)(Config-line)# accounting exec default (Routing) #exit