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.
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.
<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
<HUAWEI> system-view [~HUAWEI] user-interface console 0 [~HUAWEI-ui-console0] shell