You can configure the ESXi SNMP agent to receive hardware events either from IPMI sensors or CIM indications.

IPMI sensors are used for hardware monitoring in ESX/ESXi 4.x and earlier. The conversion of CIM indications to SNMP notifications is available in ESXi 5.0 and later.

If you run ESXCLI commands through ESXCLI, you must supply connection options that specify the target host and login credentials. If you use ESXCLI commands directly on a host using the ESXi Shell, you can use the commands as given without specifying connection options. For more information on connection options see ESXCLI Concepts and Examples.

Prerequisites

Configure the ESXi SNMP agent by using the ESXCLI commands. See Getting Started with ESXCLI for more information on how to use ESXCLI.

Procedure

  1. Run the esxcli system snmp set --hwsrc source command to configure the source for hardware events.
    Here, source is sensors or indications, for hardware event received from IPMI sensors or CIM indications respectively.
  2. (Optional) If the ESXi SNMP agent is not enabled, run the following command:
    esxcli system snmp set --enable true