An ESXi system includes a direct console that allows you to start and stop the system and to perform a limited set of maintenance and troubleshooting tasks. The direct console includes the ESXi Shell. The ESXi Shell includes a set of fully supported ESXCLI commands and a set of commands for troubleshooting and remediation. You must enable access to the ESXi Shell from the direct console of each system. You can enable access to the local ESXi Shell or access to the ESXi Shell with SSH.The ESXi Shell is disabled by default. You can enable the ESXi Shell for troubleshooting from the direct console. All ESXCLI commands that are available in the ESXi Shell are also included in the vCLI package. Install the vCLI package or deploy the vMA virtual appliance, and run commands against your ESXi hosts, instead of running commands in the ESXi Shell itself. See Getting Started with vSphere Command-Line Interfaces.
2 Scroll to Troubleshooting Options, and press Enter.
3 Select 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.
a Select Modify ESXi Shell timeout and press Enter.
1
2 In the Services section, click Properties.
3
■
■ To enable access permanently, click Start and stop with host. The change will take effect the next time you reboot the host.
5 Click OK.
1
2 Under System, select Security Profile.
3
■
5 Click Service Details and select the startup policy Start and stop manually.When you select Start and stop manually, the service does not start when you reboot the host. If you want the service to start when you reboot the host, select Start and stop with host.
6 Select Start to enable the service.
7 Click OK.
■ Availability timeout. 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. Corresponds to the UserVars.ESXiShellTimeOut advanced setting.
■ Idle timeout. The amount of time that can elapse before the user is logged out of an idle interactive sessions. Changes to the idle timeout apply the next time a user logs in to the ESXi Shell and do not affect existing sessions. Corresponds to the UserVars.ESXiShellInteractiveTimeOut advanced setting.
1 From the Troubleshooting Mode Options menu, select Modify ESXi Shell and SSH timeouts and press Enter.
1
2 Under System, select Advanced System Settings.
3 In the left panel, click UserVars.
a
a
6 Click OK.
3 To log out, type exit in the shell.
2 Scroll to Troubleshooting Options, and press Enter.
3 Select Enable SSH and press Enter once.On the left, Enable SSH changes to Disable SSH. On the right, SSH is Disabled changes to SSH is Enabled.
1 Select the host and click the Configuration tab.
2 Click Security Profile in the Software panel.
3 In the Services section, click Properties.
4
■
■ To enable SSH permanently, click Start and stop with host. The change takes effect the next time you reboot the host.
6 Click OK.
A large set of new ESXCLI commands supports many administrative tasks. The commands are fully supported and tested by VMware and include command-line help. See Getting Started with vSphere Command-Line Interfaces. esxcfg- commands The esxcfg- commands available in the service console are deprecated. The commands will be removed from the ESXi Shell in a future release. See Reference to Replacements for Service Console Commands. localcli commands Set of troubleshooting commands for use with VMware Technical Support. localcli commands are equivalent to ESXCLI commands but bypass the host daemon (hostd).Warning: localcli commands are only for situations when hostd is unavailable and cannot be restarted. After you run a localcli command, you must restart hostd. Using localcli commands in other situations is not supported. An inconsistent system state and potential failure can result.
■ Each get command returns single values.
■ The list commands are used for multiple return values.
Important For a complete list of ESXCLI commands, see the vSphere Command-Line Interface Reference. The vSphere Command-Line Interface Concepts and Examples document illustrates how to perform common tasks with ESXCLI or vicfg- commands.
Important The commands are not tested or supported by VMware. Use VMware commands such as ESXCLI, vicfg- commands, and so on, instead.You can see a list of commands in /usr/bin. When you list the commands with ls -al, notice that several of the utilities are redirected to commands appropriate in the vSphere environment. The following commands produce different results than typical shell commands.
■ Several commands are redirected to vmkvsitools.
Important vmkvsitools is intended for use with VMware Technical Support. Do not use vmkvsitools to manage your system.
■ Ping commands are redirected to vmkping.