R3721-F3210-F3171-HP High-End Firewalls Getting Started Command Reference-6PW101

4
[Sysname-ui-vty0] authentication-mode scheme
[Sysname-ui-vty0] quit
[Sysname] local-user 123
[Sysname-luser-123] password cipher 321
[Sysname-luser-123] service-type telnet
[Sysname-luser-123] authorization-attribute level 3
auto-execute command
Syntax
auto-execute command command
undo auto-execute command
View
User interface view
Default level
3: Manage level
Parameters
command: Specifies a command to be automatically executed.
Description
Use auto-execute command to specify a command to be automatically executed when a user logs in to
the current user interface.
Use undo auto-execute command to remove the configuration.
By default, command auto-execution is disabled.
The auto-execute command command is not supported by the console port.
The system automatically executes the specified command when a user logs in to the user interface, and
tears down the user connection after the command is executed. If the command triggers another task, the
system does not tear down the user connection until the task is completed.
Typically, you use can use the auto-execute command telnet command in user interface view to enable
a user to automatically telnet to the specified host when the user logs in to the device. After the user
terminates the connection with the host, the user's connection with the device is automatically terminated.
CAUTION:
The auto-execute command command may disable you from configuring the system through the user
interface to which the command is applied. Before confi
g
urin
g
the command and savin
g
the confi
g
uration
(by using the save command), make sure that you can access the device to remove the configuration when
a problem occurs.
Examples
# Configure the device to automatically telnet to 192.168.1.41 after a user logs in to interface VTY 0.
<Sysname> system-view
<Sysname> system-view
[Sysname] user-interface vty 0
[Sysname -ui-vty0] auto-execute command telnet 192.168.1.41
% This action will lead to configuration failure through ui-vty0. Are you sure?