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.
Usage Guidelines
Usage Scenario
To log in to a device through a console, or Virtual Type Terminal (VTY), you can use the shell command to enable terminal services on the user interface. Otherwise, you will fail in logging in to the device through the user interface.
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.
Implementation Procedure
When the undo shell command is executed, determine whether to disable terminal services on the user interface when the system displays a message like Warning: ui-vty0-4 will be disabled. Continue? [Y/N]:. Users may fail to log in to the device through the port after the terminal services are disabled. Exercise caution before disabling terminal interfaces on a user interface.
Precautions
After the undo shell command is executed in the VTY user interface view to disable terminal services on the VTY user interface, users cannot log in to the device using Telnet, STelnet, and SFTP through the VTY user interface.
The undo shell command cannot be used in the interface view through which the user logs in.
The console user interface does not support this command.