Using ESXCLI plugin at Host Level
In ESXi 7.0 Update 1, a new plugin is added in the ESXCLI under 'vm' namespace to
enable or disable
appinfo
feature at the host level. By default,
this feature is enabled at the ESXi host.Install ESXi version 7.0 Update 1 to
use this feature.
This plugin provides two command
options at host level:
- getoption: Queries the configstore and returns the current state of the appinfo feature.esxcli vm appinfo get
- setoption: Updates the configstore and instantly notifies all the running virtual machines that the feature state is modified.
- Enabling theappinfofeature at host:esxcli vm appinfo set --enabled true--enabledis a mandatory option forsetcommand.Valid values for enabling theappinfofeature are:"1", "yes", "y", "true", "True", "t", "T"
- Disabling theappinfofeature at host:esxcli vm appinfo set --enabled false--enabledis a mandatory option forsetcommand.Valid values for enabling theappinfofeature are:"0", "no", "n", "false", "False", "f", "F”
This plugin can also be invoked by:- Using a PowerCLI script to enable or disable the appinfo feature at the host, cluster, and datacenter levels. For details on its usage with examples, refer KB 81033.
- Using/bin/localcliutility on ESXi host. However,/bin/localclican only be invoked locally and cannot be invoked remotely.