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

Before you begin

SNMP configuration for ESXi requires the ESXCLI command set. See Getting Started with vSphere Command-Line Interfaces for more information on how to access ESXCLI.

About this task

IPMI sensors were 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 use ESXCLI commands through vCLI, 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 vSphere Command-Line Interface Concepts and Examples.

Procedure

  1. Configure the source for hardware events.

    Option

    Command

    IPMI sensors

    esxcli system snmp set --hwsrc sensors

    CIM indications

    esxcli system snmp set --hwsrc indications

  2. (Optional) : If the SNMP agent is not enabled, enable it by typing esxcli system snmp set --enable true.