Skip to main content

vsphere.host

Supported platform

  • vmware-esxi
  • vmware-vsphere

Description

vSphere ESXi host resource

Fields

IDTYPEDESCRIPTION
moidstringvSphere managed object ID
namestringvSphere resource name
inventoryPathstringvSphere inventory path
propertiesdictESXi properties
standardSwitch[]vsphere.vswitch.standardStandard virtual switches
distributedSwitch[]vsphere.vswitch.dvsDistributed virtual switches
adapters[]vsphere.vmnicPhysical NICs currently installed and loaded on the system
vmknics[]vsphere.vmknicVirtual network interface that is used by the VMKernel
packages[]esxi.vibAll VIBs installed on your ESXi host
acceptanceLevelstringHost-level VIB acceptance level
kernelModules[]esxi.kernelmoduleKernel modules (drivers) on ESXi
advancedSettingsmap[string]stringESXi host advanced settings
services[]esxi.serviceList of ESXi management services
timezoneesxi.timezoneHost timezone settings
ntpesxi.ntpconfigHost NTP configuration
snmpmap[string]stringHost SNMP configuration

Examples

Verify the Software AcceptanceLevel for ESXi host

// targeting a single ESXi host
esxi.host {
acceptanceLevel == 'VMwareCertified' || acceptanceLevel == 'VMwareAccepted' || acceptanceLevel == 'PartnerSupported'
}

// targeting the vSphere API
vsphere.datacenters {
hosts {
acceptanceLevel == 'VMwareCertified' || acceptanceLevel == 'VMwareAccepted' || acceptanceLevel == 'PartnerSupported'
}
}

Verify that each vib is "VMwareCertified" or "VMwareAccepted"

esxi.host {
packages {
acceptanceLevel == 'VMwareCertified' || acceptanceLevel == 'VMwareAccepted' || acceptanceLevel == 'PartnerSupported'
}
}