auto-execute command
Function
The auto-execute command command configures auto-run commands.
The undo auto-execute command command cancels auto-run commands.
By default, the auto-run function is disabled.
Usage Guidelines
Usage Scenario
You can run the auto-execute command command to make the device run a command automatically on the corresponding interface.
You can run the auto-execute command command to enable automatic execution for the Telnet command.
Precautions
The auto-execute command command is applicable to the VTY user interface.
When you log in to the device, the device automatically runs the commands that are configured by the auto-execute command command. The user's terminal disconnects from the device.
Before saving the configuration of the auto-execute command command, ensure that you can log in to the device in other ways so that you can cancel the command configuration.
If you use the auto-execute command command, you cannot configure the device in the user interface view. Therefore, use this command with caution.
Example
# Configure the telnet 10.110.100.1 command to automatically run after a user logs in to the device using the VTY0 interface.
<Huawei> system-view [Huawei] user-interface vty 0 [Huawei-ui-vty0] auto-execute command telnet 10.110.100.1 Warning: The system will not be configured through ui-vty0.Continue? [Y/N]: y