< Home

auto-execute command

Function

The auto-execute command command enables a FW to automatically execute specified commands.

The undo auto-execute command command disables a FW from automatically executing specified commands.

By default, a FW cannot automatically execute commands.

Format

auto-execute command command

undo auto-execute command

Parameters

Parameter Description Value
command Specifies a command for automatic execution. -

Views

Administrator interface view

Default Level

3: Management level

Usage Guidelines

The console interface does not support the auto-execute command command.

After you run the auto-execute command command on a specific administrator interface and re-log in to the administrator interface, the FW automatically executes the specified command and then disconnects you from the administrator interface.

After you run the auto-execute command command and use STelnet to re-log in to a FW, the FW automatically connects your terminal to another device.

After the auto-execute command command is run on a specific administrator interface, you cannot perform other configurations on that interface. Before executing the auto-execute command and save commands, ensure that you can log in to the FW and disable the automatic command execution function.

Example

# Enable the FW to automatically execute the stelnet 10.110.100.1 command after you log in to VTY0.

<sysname> system-view
[sysname] user-interface vty 0
[sysname-ui-vty0] auto-execute command stelnet 10.110.100.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >