78
[Sysname] user-interface vty 0
[Sysname-ui-vty0] authentication-mode password
[Sysname-ui-vty0] set authentication password cipher 321
Example 3:
Set to use username and password authentication when users use VTY 0 interface to
log onto the device. The username is
123
and the authentication password is
321
.
<Sysname> system-view
[Sysname] user-interface vty 0
[Sysname-ui-vty0] authentication-mode scheme
[Sysname-ui-vty0] quit
[Sysname] local-user 123
[Sysname-luser-123] password cipher 321
[Sysname-luser-123] authorization-attribute level 3
command accounting
Syntax
command accounting
undo command accounting
View
User interface view
Default Level
3: Manage level
Parameters
None
Description
Use the
command accounting
command to enable command accounting.
Use the
undo command accounting
command to restore the default.
By default, command accounting is disabled. The accounting server does not record
the commands that the users have executed.
If command accounting is enabled, every executed command is recorded on the
HWTACACS server.
If both command accounting and command authorization are enabled, only the
authorized and executed commands are recorded on the HWTACACS server.