Configuration manual
3. System Control and Management
35
www.qtech.ru
Configure Users to Automatically Execute Commands after Login
Configure the commands to be automatically executed after users successfully log in. By
default, no command is to be automatically executed.
Table 3-20 Configuring the commands to be automatically executed after successful login
Step
Command
Description
Enter
the
global
configuration mode.
configure terminal
-
Enter
the
line
configuration mode of
the Console port or VTY.
line { con 0 | vty vty-min-
number [ vty-max-number ] }
Mandatory
Configure
the
commands
to
be
automatically executed
after successful login.
autocommand command-line Mandatory
By
default,
no
command is executed
automatically.
Configure Auto Command Execution Options
You can configure delay time for auto commands, and configure whether to disconnect the
user connection after the commands are executed automatically. By default, the command
execution is not delayed, and the user connection is disconnected after the commands are
executed automatically.
The auto command execution options include delay and whether to disconnect the user
connection after command execution.
Table 3-21 Configuring auto command execution options
Step
Command
Description
Enter
the
global
configuration mode.
configure terminal
-
Enter
the
line
configuration mode of
the Console port or VTY.
line { con 0 | vty vty-min-
number [ vty-max-number ] }
Mandatory.
Configure
the
auto
command
execution
options.
autocommand-option
{
nohangup [ delay delay-time-
number ] | delay delay-time-
number [ nohangup ] }
Mandatory.