3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
2451
**************************************************************************
User interface con0 is available.
Please press ENTER.
# Enter <s> at the prompt of "Please press ENTER". You will see the terminal
session being started.
<Sysname>
%Mar 2 18:40:27:981 2005 Sysname SHELL/5/LOGIN: Console login from con0
auto-execute command
Syntax auto-execute command command
undo auto-execute command
View User interface view
Parameter command: Command to be automatically executed.
Description Use the
auto-execute command command to specify a command to be
executed automatically.
Use the
undo auto-execute command command to disable this feature.
By default, command auto-execution is disabled.
The auto-execute command command is supported on all types of user
interfaces except the Console port and the AUX port functioning as the console
port.
Once a command is configured using the auto-execute command command,
the system automatically executes the command when a user logs on from the
interface where the command is configured. After the command is completed, the
connection breaks automatically.
A good example is configuring the auto-execute command telnet command to
let users telnet to the specified host automatically.
c
CAUTION: The auto-execute command command may disable you from
configuring the system through the terminal line to which the command is
applied. Therefore, before configuring the command and saving it with the
configuration (using the save command), make sure that you can access the
system by other means to remove the configuration in case a problem occurs.
Example # Automatically execute the display brief interface loopback command after a
user logs on from the VTY 0 interface.
<Sysname> system-view
[Sysname] user-interface vty 0 4
[Sysname-ui-vty0-4] auto-execute command display brief interface loopback
% This action will lead to configuration failure through ui-vty0-4. Are you