To resolve this issue, restart the host or restart the VMware hostd agent.
When you restart the host agent, the newly installed commands are detected and made available. In addition, the host is disconnected from vCenter Server, which interrupts and cancels operations that are being executed on the host via vSphere APIs. If your host is in lockdown mode, you need to temporarily exit lockdown mode before restarting the hostd agent. Do not restart the VMware host agent while other management operations are occurring.
To restart the VMware host agent:
- Enable the local ESXi shell or SSH access. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.0 (1017910).
- From the ESXi shell, run the command:
/etc/init.d/hostd restart
After 60 seconds, the newly installed esxcli commands are available.