6.5.1

Table Of Contents
Configure the Source of Hardware Events Received by the SNMP Agent
You can congure 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 notications is available in ESXi 5.0 and later.
If you run 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.
Prerequisites
Congure the ESXi SNMP agent by using the ESXCLI commands. See Geing Started with vSphere Command-
Line Interfaces for more information on how to use ESXCLI.
Procedure
1 Run the esxcli system snmp set --hwsrc source command to congure 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
Configure the SNMP Agent to Filter Notifications
You can congure the ESXi SNMP agent to lter out notications if you don't want your SNMP
management software to receive those notications.
Prerequisites
Congure the ESXi SNMP agent by using the ESXCLI commands. See Geing Started with vSphere Command-
Line Interfaces for more information on how to use ESXCLI.
Procedure
1 Run the esxcli system snmp set command to lter notications:
esxcli system snmp set --notraps oid_list
Here, oid_list is a list of OIDs for the notications to lter, separated by commas. This list replaces any
OIDs that were previously specied using this command.
For example, to lter out coldStart (OID 1.3.6.1.4.1.6876.4.1.1.0) and warmStart (OID
1.3.6.1.4.1.6876.4.1.1.1) traps, run the following command:
esxcli system snmp set --notraps 1.3.6.1.4.1.6876.4.1.1.0,1.3.6.1.4.1.6876.4.1.1.1
2 (Optional) If the ESXi SNMP agent is not enabled, run the following command:
esxcli system snmp set --enable true
The traps identied by the specied OIDs are ltered out of the output of the SNMP agent, and are not sent
to SNMP management software.
What to do next
To clear all notication lters, run the esxcli system snmp set --notraps reset command.
vSphere Monitoring and Performance
160 VMware, Inc.