
1-71
Default:
Disable.
Command Mode:
Global Mode.
Usage Guide:
Only after configuring this command and configuring command authorization manner and authorization selection
priority of login user with VTY, it can be authorized when configuring command with corresponding command level
for login user with VTY.
Example:
Enable VTY command authorization function.
Switch(config)#
aaa authorization config-commands
1.2.2 accounting exec
Command:
accounting line {console | vty} exec {start-stop | stop-only | none} method1 [method2
…]
no accounting line {console | vty} exec
Function:
Configure the list of the accounting method for the login user 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);
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.
Command Mode:
Global Mode.