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.standardLists of standard virtual switches
distributedSwitch[]vsphere.vswitch.dvsLists of distributed virtual switches
adapters[]vsphere.vmnicLists physical NICs currently installed and loaded on the system
vmknics[]vsphere.vmknicLists of virtual network interface that is used by the VMKernel
packages[]esxi.vibLists all 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'
}
}