shell

Function

The shell command enables the terminal services on the user interface.

The undo shell command removes the current settings.

By default, the terminal services are enabled on all the user interfaces.

Format

shell

undo shell

Parameters

None

Views

VTY-type user interface view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
tty write

Usage Guidelines

After the shell command is configured on the user interface, terminal services are enabled, and users are allowed to input commands on the user interface for query or operations on the device.

To configure or maintain the parameters of a user interface, the undo shell command can be used to disable terminal services on the user interface. During this period, you cannot log in to the device using the interface. After completing the configuration for the parameters of the user interface, the shell command must be used to enable terminal services on the user interface. Otherwise, authorized users may fail to log in to the device through the interface.

After the undo shell command is configured in the VTY view, Telnet, STelnet access services are not provided on the user interface.

Example

# Disable terminal services on the VTY 0 to VTY 4.
<HUAWEI> system-view
[~HUAWEI] user-interface vty 0 4
[~HUAWEI-ui-vty0-4] undo shell
Warning: ui-vty0-4 will be disabled. Do you want to continue? [Y/N]:y
# Enable terminal services on the console 0.
<HUAWEI> system-view
[~HUAWEI] user-interface console 0
[~HUAWEI-ui-console0] shell
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >