ESXi Shell Access with the Direct Console
An ESXi system includes a Direct Console User Interface (DCUI) that allows you to start and stop the system and to perform a limited set of maintenance and troubleshooting tasks. The direct console allows access to the ESXi Shell, which is disabled by default. You can enable the ESXi Shell in the direct console or by using the vSphere Web Client. You can enable local shell access or remote shell access:
The ESXi Shell includes all ESXCLI commands, a set of deprecated esxcfg- commands, and a set of commands for troubleshooting and remediation.
Enabling Local ESXi Shell Access
You can enable the ESXi Shell from the direct console or from the vSphere Web Client or the vSphere Client.
If you have access to the direct console, you can enable the ESXi Shell from there.
To enable the ESXi Shell in the direct console
1
2
Scroll to Troubleshooting Options and press Enter.
3
Choose Enable ESXi Shell and press Enter.
On the left, Enable ESXi Shell changes to Disable ESXi Shell. On the right, ESXi Shell is Disabled changes to ESXi Shell is Enabled.
4
If you do not have access to the Direct Console Interface, you can enable the ESXi Shell from the vSphere Web Client.
To enable the ESXi Shell from the vSphere Web Client or the vSphere Client
1
Select the host, click Manage, and keep Settings selected.
2
Click Security Profile.
3
4
Select ESXi Shell.
To change the Startup policy across reboots, select Start and stop with host and reboot the host.
5
Click OK.
After you have enabled the ESXi Shell, you can use it from that monitor or through a serial port.
ESXi Shell Timeout
The ESXi Shell supports a timeout for ESXi Shell availability and a timeout for idle ESXi Shell sessions.
Availability timeout: The availability timeout setting is the amount of time that can elapse before you must log in after the ESXi Shell is enabled. After the timeout period, the service is disabled and users are not allowed to log in.
Idle timeout: If a user enables the ESXi Shell on a host, but forgets to log out of the session, the idle session remains connected indefinitely
You can set both timeout values from the Direct Console User Interface, from the vSphere Web Client, or from the vSphere Client. See the vSphere Security document in the vSphere Documentation Center for detailed instructions.
Using the ESXi Shell
After you enable the ESXi Shell in the direct console, you can use it from the main direct console screen or remotely through a serial port.
To use the local ESXi Shell
1
2
When you type the password, characters are not displayed on the console.
3
4
To log out, type exit in the shell.
5
See vSphere Installation and Setup documentation for information on serial port setup.