T E C H N I C A L W H I T E P A P E R / 5 9
VMware vSphere 5.0 Evaluation Guide –
Volume One
Figure 71.
esxcli Command with –formatter Option from the ESXi Shell
Now we have a short list giving us just the information we need.
The localcli Command
The
esxcli
command talks to the ESXi hosts through the
hostd
service. In rare circumstances, when the
hostd
service might not be responding, the
localcli
command can be used. The
localcli
command is
equivalent to
esxcli
with the exception that it bypasses
hostd
. The
localcli
command is only intended for
situations when
hostd
is unavailable and cannot be restarted. After you run the
localcli
command, you
must restart
hostd
. Run
esxcli
commands after the restart.
NOTE: Use the
localcli
command only under the direction of VMware technical support, because improper
use can result in an inconsistent system state and potential failure of the ESXi host.
The following example shows the use of the localcli command to display all network adaptors on a host:
Figure 72.
localcli Command Example