
1-72
Usage Guide:
console
and
vty
login method are able to set the corresponding accounting method respectively, the accounting
method only supports method currently.
Example:
Configure the login accounting with the telnet method.
Switch(config)#accounting line vty exec start-stop tacacs
1.2.3 accounting command
Command:
accounting line {console | vty} command <
1-15
> {start-stop | stop-only | none} method1 [method2
…]
no accounting line {console | vty} command <
1-15
>
Function:
Configure the list of the command accounting method with VTY (login with Telnet and SSH) and Console. The no
command restores the default accounting method.
Parameters:
line
selects the accounting line, including
console
,
vty
(telnet and ssh);
command <
1-15
>
is the level of the
accounting command;
start-stop
sends the accounting start or the accounting stop when the user is logging or exit
the login;
stop-only
sends the accounting stop when the user exits the login only;
none
does not send the
accounting start or the accounting stop;
method
is the list of the accounting method, it only supports
tacacs
keyword;
tacacs
uses the remote server to count.
Default:
There is no accounting method.
Command Mode:
Global Mode.
Usage Guide:
console
and
vty
login method are able to set the corresponding command accounting method respectively, the
accounting method only supports method currently. Only the stop information of the accounting is
recorded, whether command accounting configures start-stop method or stop-only method.