< Home

shell

Function

The shell command enables terminal services on a user interface.

The undo shell command disables terminal services on a user interface.

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

Format

shell

undo shell

Parameters

None

Views

User interface view

Default Level

3: Management level

Usage Guidelines

You can use the shell command on a user interface to enable terminal services. This command enables users to enter commands through this interface to query device information and configure the device.

You can use the undo shell command on the user interface to disable terminal services. This command does not allow users to perform any operations through this interface. After using the undo shell command in the VTY view, this user interface does not provide Telnet, STelnet, and SFTP access.

The console interface does not support this command.

Example

# Disable terminal services on 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. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >